From f03113209062286fee247e78c3de5c7a266c631e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 5 Jan 2019 16:06:34 -0800 Subject: Added --help --- nowopen | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nowopen b/nowopen index 919be59..1874d5f 100755 --- a/nowopen +++ b/nowopen @@ -30,6 +30,15 @@ for i=#arg,1,-1 do if arg[i] == "-p" then raw_print = true table.remove(arg, i) + elseif arg[i] == "-h" or arg[i] == "--help" then + print([[ +nowopen: show which businesses are now open. +Usage: nowopen [-p] [--help] [tags...] + -p: Print plain text to stdout + --help: display this message + tags: if provided, only show businesses that match one of the given tags +]]) + os.exit(0) end end -- cgit v1.2.3