diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-05 16:06:34 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-05 16:06:34 -0800 |
| commit | f03113209062286fee247e78c3de5c7a266c631e (patch) | |
| tree | 4d751b81b63d741e39a0b4e89169f1d2bdf908ee | |
| parent | d02ee056d1d1a39f583d41c6b6cb3b1f985e5878 (diff) | |
Added --help
| -rwxr-xr-x | nowopen | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
