diff options
author | Ben Sima <ben@bsima.me> | 2023-09-21 16:59:15 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-09-21 21:44:16 -0400 |
commit | dbdf4da2576f889544a33ce0bad4b8a5ff3eca87 (patch) | |
tree | 169690c7827f77b2dd7ae6e0ec45aee202d03c1c /Biz/Cli.hs | |
parent | 6e4a65579c3ade76feea0890072099f0d0caf416 (diff) |
Add a 10-minute timeout for all builds
A build should never take more than 10 minutes. If it does, then force the
programmer to make stuff faster. This should be a forcing function to either
delete unneeded code, or improve the build system.
Diffstat (limited to 'Biz/Cli.hs')
-rw-r--r-- | Biz/Cli.hs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -10,7 +10,7 @@ module Biz.Cli Docopt.docopt, Docopt.getAllArgs, Docopt.getArg, - Docopt.getArgWithDefault, + getArgWithDefault, Docopt.longOption, Docopt.shortOption, Docopt.command, @@ -44,3 +44,8 @@ main Plan {..} = has :: Docopt.Arguments -> Docopt.Option -> Bool has = Docopt.isPresent + +-- | This ignores the second argument because the default should come from the +-- USAGE text with [default: x]. +getArgWithDefault :: Docopt.Arguments -> Docopt.Option -> String +getArgWithDefault args = Docopt.getArgWithDefault args "" |