Skip to content

Commit 8032934

Browse files
committed
Show SYNOPSIS section by default in command line help messages
The SYNOPSIS section is used in various command line commands and it's good to show it. It was likely omitted initially because it was rendered the same as the "USAGE" section.
1 parent 113260d commit 8032934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/RT/Interface/CLI.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ sub ShowHelp {
167167
-exitval => $args{'ExitValue'} || 0,
168168
-verbose => 99,
169169
-sections => $args{'Sections'} || ($args{'ExitValue'}
170-
? 'NAME|USAGE'
171-
: 'NAME|USAGE|OPTIONS|DESCRIPTION'
170+
? 'NAME|SYNOPSIS|USAGE'
171+
: 'NAME|SYNOPSIS|USAGE|OPTIONS|DESCRIPTION'
172172
),
173173
);
174174
}

0 commit comments

Comments
 (0)