diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:39:05 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:39:05 -0400 |
commit | b2252febf1355e62a00fb735831d3b2a1aed2566 (patch) | |
tree | 621fb71f80252d300436261bb1d67ee537d1f7e9 /Command/Help.hs | |
parent | e7e61fb6cbe5455ded9bb550a64121223c099fc2 (diff) |
support cmdnorepo actions, also using getopt-applicative there
Diffstat (limited to 'Command/Help.hs')
-rw-r--r-- | Command/Help.hs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Command/Help.hs b/Command/Help.hs index 08873e2bb..17ed8cd0b 100644 --- a/Command/Help.hs +++ b/Command/Help.hs @@ -22,9 +22,12 @@ import qualified Command.Fsck import System.Console.GetOpt cmd :: Command -cmd = noCommit $ noRepo startNoRepo $ dontCheck repoExists $ - command "help" SectionCommon "display help" - "COMMAND" (withParams seek) +cmd = noCommit $ dontCheck repoExists $ + noRepo (parseparams startNoRepo) $ + command "help" SectionCommon "display help" + "COMMAND" (parseparams seek) + where + parseparams = withParams seek :: CmdParams -> CommandSeek seek = withWords start |