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.
This commit is contained in:
parent
6204dcbd7b
commit
8a9d2a6e9d
5 changed files with 42 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue