Add --help to every subcommand
parent
8d7a8d3e56
commit
1975fc3eda
|
@ -40,18 +40,21 @@ choiceParser :: Parser Choice
|
||||||
choiceParser = foldl1 (<|>)
|
choiceParser = foldl1 (<|>)
|
||||||
[ subparser
|
[ subparser
|
||||||
(command "ss" (info
|
(command "ss" (info
|
||||||
(pure GetSections)
|
(pure GetSections
|
||||||
|
<**> helper)
|
||||||
(progDesc "Request list of sections")))
|
(progDesc "Request list of sections")))
|
||||||
, subparser
|
, subparser
|
||||||
(command "ts" (info
|
(command "ts" (info
|
||||||
(GetTopics <$> (Just <$> option auto (metavar "MAX_ENTRIES_NUMBER"
|
(GetTopics <$> (Just <$> option auto (metavar "MAX_ENTRIES_NUMBER"
|
||||||
<> long "max-entries"
|
<> long "max-entries"
|
||||||
<> short 'm'
|
<> short 'm'
|
||||||
<> help "max number of entries")))
|
<> help "max number of entries"))
|
||||||
|
<**> helper)
|
||||||
(progDesc "Request list of topics")))
|
(progDesc "Request list of topics")))
|
||||||
, subparser
|
, subparser
|
||||||
(command "t" (info
|
(command "t" (info
|
||||||
(GetTopic <$> argument auto (metavar "TOPIC_ID"))
|
(GetTopic <$> argument auto (metavar "TOPIC_ID")
|
||||||
|
<**> helper)
|
||||||
(progDesc "Request a topic")))
|
(progDesc "Request a topic")))
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue