diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-09 11:49:52 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-09 11:52:47 -0400 |
commit | 6ddffe0f0e64a87fd924f736941fa242e0d740a6 (patch) | |
tree | 94bc5fed6512ea3cfab47b274cf5534edf889b77 /Command | |
parent | 1e4c1adeae64baa4eb30fd7e1171620c27e0e17f (diff) |
let optparse-applicative handle the usage display when run w/o command or bad command
Still generating the list of commands myself, to get it sorted into
sections and with short synopses.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Help.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Help.hs b/Command/Help.hs index 0da7ecc46..a44dcb234 100644 --- a/Command/Help.hs +++ b/Command/Help.hs @@ -56,8 +56,8 @@ showGeneralHelp = putStrLn $ unlines , Command.Whereis.cmd , Command.Fsck.cmd ] - , "Run 'git-annex' for a complete command list." - , "Run 'git-annex help command' for help on a specific command." + , "For a complete command list, run: git-annex" + , "For help on a specific command, run: git-annex help COMMAND" ] where cmdline c = "\t" ++ cmdname c ++ "\t" ++ cmddesc c |