diff options
author | Ben Sima <ben@bsima.me> | 2023-01-01 20:36:48 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-01-01 20:36:48 -0500 |
commit | 9699335376fa4bd5a9c7f2dcfb6bbe6a0165be40 (patch) | |
tree | 807d9ffb0ab271a56f91359bd37017681de83f07 | |
parent | 2bf10cf2082775fb027a4975b06c199798518c7b (diff) |
Support -h in Biz.Cli
-rw-r--r-- | Biz/Cli.hs | 2 | ||||
-rw-r--r-- | Biz/Lint.hs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -38,7 +38,7 @@ main Plan {..} = if args `has` Docopt.command "test" then Test.run test else - if args `has` Docopt.longOption "help" + if args `has` Docopt.longOption "help" || args `has` Docopt.shortOption 'h' then Docopt.exitWithUsage help else move args diff --git a/Biz/Lint.hs b/Biz/Lint.hs index 80e2665..0341954 100644 --- a/Biz/Lint.hs +++ b/Biz/Lint.hs @@ -52,9 +52,9 @@ help = all your lint are belong to us Usage: - lint --help lint test lint [--fix] [<file>...] + lint -h, --help |] exit :: [Result] -> IO () |