few more subcommand --help improvements
This commit is contained in:
parent
d8d1499229
commit
bd9ed413ce
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ parseCmd :: CmdParams -> [Command] -> (Command -> O.Parser v) -> O.ParserResult
|
|||
parseCmd allargs allcmds getparser = O.execParserPure (O.prefs O.idm) pinfo allargs
|
||||
where
|
||||
pinfo = O.info (O.helper <*> subcmds) O.fullDesc
|
||||
subcmds = O.subparser $ mconcat $ map mkcommand allcmds
|
||||
subcmds = O.hsubparser $ mconcat $ map mkcommand allcmds
|
||||
mkcommand c = O.command (cmdname c) $ O.info (mkparser c)
|
||||
(O.fullDesc <> O.header (cmddesc c))
|
||||
(O.fullDesc <> O.header (cmddesc c) <> O.progDesc (cmddesc c))
|
||||
mkparser c = (,)
|
||||
<$> pure c
|
||||
<*> getparser c
|
||||
|
|
Loading…
Reference in a new issue