Skip to content

Commit 5d99e28

Browse files
author
HirotoShioi
committed
Display helper message on sub commands
1 parent ec2b06e commit 5d99e28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CLI.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ data CLI
2121
cmdProcessTicket :: Parser CLI
2222
cmdProcessTicket = ProcessTicket <$> argument auto
2323
( metavar "TICKET_ID"
24-
<> help "Specify ticket id to analyze")
24+
<> help "Ticket id to analyze")
2525

2626
-- | Parser for RawRequest
2727
cmdRawRequest :: Parser CLI
2828
cmdRawRequest = RawRequest <$> strOption
2929
( metavar "URL"
30-
<> help "Specify url to request")
30+
<> help "Url to request")
3131

3232
-- | Parser for CLI commands
3333
cli :: Parser CLI
@@ -37,9 +37,9 @@ cli = subparser $ mconcat
3737
(progDesc "Collect emails requested by single user"))
3838
, command "processTickets" (info (pure ProcessTickets)
3939
(progDesc "Process all the tickets i.e add comments, tags."))
40-
, command "processTicket" (info cmdProcessTicket
41-
(progDesc "Process Zendesk ticket of an given <TICKET_ID>"))
42-
, command "rawRequest" (info cmdRawRequest
40+
, command "processTicket" (info (cmdProcessTicket <**> helper)
41+
(progDesc "Process Zendesk ticket of an given ticket id"))
42+
, command "rawRequest" (info (cmdRawRequest <**> helper)
4343
(progDesc "Raw request to the given url"))
4444
, command "showStats" (info (pure ShowStatistics)
4545
(progDesc "Print list of ticket Ids that agent has been assigned"))

0 commit comments

Comments
 (0)