aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-05 16:06:34 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-05 16:06:34 -0800
commitf03113209062286fee247e78c3de5c7a266c631e (patch)
tree4d751b81b63d741e39a0b4e89169f1d2bdf908ee
parentd02ee056d1d1a39f583d41c6b6cb3b1f985e5878 (diff)
Added --help
-rwxr-xr-xnowopen9
1 files changed, 9 insertions, 0 deletions
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