aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-05-01 12:55:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-05-01 12:55:24 -0400
commit7879b177e05b3d19ac2add5759a316a47ba03e3d (patch)
tree2af092c59c1e865a6d3bd0765d1037a76bb50599
parent7dbe5cac44ca7f336c92b2f2bf4a14462bc333ec (diff)
Added usage
-rwxr-xr-xnowopen5
1 files changed, 3 insertions, 2 deletions
diff --git a/nowopen b/nowopen
index be7a29e..6493f3a 100755
--- a/nowopen
+++ b/nowopen
@@ -2,7 +2,7 @@
--
-- A simple program to display which places are currently open
--
--- Usage: nowopen [-r|--random] [-p|--plain] [-w|--where] [-h|--help] [tag1 tag2...]
+-- Usage: nowopen [-r|--random] [-p|--plain] [-w|--where] [-e|--edit] [-h|--help] [tag1 tag2...]
--
-- Establishments matching any of the specified tags (prefix matching is used)
-- and the amount of time till they close will be printed.
@@ -48,10 +48,11 @@ for i=#arg,1,-1 do
elseif arg[i] == "-h" or arg[i] == "--help" then
print([[
nowopen: show which businesses are now open.
-Usage: nowopen [-p|--plain] [-r|--random] [-w|--where] [-h|--help] [tags...]
+Usage: nowopen [-p|--plain] [-r|--random] [-w|--where] [-e|--edit] [-h|--help] [tags...]
-p: Print plain text to stdout
-r: Randomly pick one available option
-w: Print where the config file is and exit
+ -e: Edit the nowopen file and exit
--help: display this message
tags: if provided, only show businesses that match one of the given tags
]])