Skip to content

Commit e84795e

Browse files
tbidneroberth
authored andcommitted
Remove parser groups appended colon
1 parent 63b407e commit e84795e

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/Options/Applicative/Help/Core.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ optionsDesc global pprefs p = vsepChunks
224224
then "Global options:"
225225
else "Available options:"
226226

227-
renderGroupStr = (<> pretty ":") . pretty . intercalate "."
227+
renderGroupStr = pretty . intercalate "."
228228

229229
doc :: ArgumentReachability -> Option a -> Maybe (OptGroup, (Doc, Doc))
230230
doc info opt = do

tests/parser_group_all_grouped.err.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Usage: parser_group_all_grouped [--file-log-path PATH]
66

77
Every option is grouped
88

9-
Logging:
9+
Logging
1010
--file-log-path PATH Log file path
1111
--file-log-verbosity INT File log verbosity
1212
-h,--help Show this help text
1313

14-
System Options:
14+
System Options
1515
--poll Whether to poll
1616
--timeout INT Whether to time out

tests/parser_group_basic.err.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Usage: parser_group_basic --hello TARGET [--file-log-path PATH]
99
Available options:
1010
--hello TARGET Target for the greeting
1111

12-
Logging:
12+
Logging
1313
--file-log-path PATH Log file path
1414
--file-log-verbosity INT File log verbosity
1515

1616
Available options:
1717
-q,--quiet Whether to be quiet
1818

19-
System Options:
19+
System Options
2020
--poll Whether to poll
2121
--timeout INT Whether to time out
2222

tests/parser_group_command_groups.err.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Usage: parser_group_command_groups --hello TARGET [--file-log-path PATH]
1010
Available options:
1111
--hello TARGET Target for the greeting
1212

13-
Logging:
13+
Logging
1414
--file-log-path PATH Log file path
1515
--file-log-verbosity INT File log verbosity
1616

1717
Available options:
1818
-q,--quiet Whether to be quiet
1919

20-
System Options:
20+
System Options
2121
--poll Whether to poll
2222
--timeout INT Whether to time out
2323

tests/parser_group_duplicates.err.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ Usage: parser_group_duplicates --hello TARGET [--file-log-path PATH]
1010
Available options:
1111
--hello TARGET Target for the greeting
1212

13-
Logging:
13+
Logging
1414
--file-log-path PATH Log file path
1515
--file-log-verbosity INT File log verbosity
1616

1717
Available options:
1818
-q,--quiet Whether to be quiet
1919

20-
System:
20+
System
2121
--poll Whether to poll
2222
--timeout INT Whether to time out
2323
--sysFlag Some flag
2424

25-
Logging:
25+
Logging
2626
--log-namespace STR Log namespace
2727

2828
Available options:

tests/parser_group_nested.err.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Usage: parser_group_nested --hello TARGET [--file-log-path PATH] [--poll]
99
Available options:
1010
--hello TARGET Target for the greeting
1111

12-
Logging:
12+
Logging
1313
--file-log-path PATH Log file path
1414

15-
Logging.System Options:
15+
Logging.System Options
1616
--poll Whether to poll
1717
--timeout INT Whether to time out
1818

19-
Logging:
19+
Logging
2020
--file-log-verbosity INT File log verbosity
2121

2222
Available options:

0 commit comments

Comments
 (0)