Skip to content

Commit b8ade4c

Browse files
rscharfegitster
authored andcommitted
shortlog: correct option help for -w
Wrap the placeholders in the option help string for -w in pairs of angular brackets to document that users need to replace them with actual numbers. Use the flag PARSE_OPT_LITERAL_ARGHELP to prevent parseopt from adding another pair. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1758abe commit b8ade4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin/shortlog.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
267267
N_("Suppress commit descriptions, only provides commit count")),
268268
OPT_BOOL('e', "email", &log.email,
269269
N_("Show the email address of each author")),
270-
{ OPTION_CALLBACK, 'w', NULL, &log, N_("w[,i1[,i2]]"),
271-
N_("Linewrap output"), PARSE_OPT_OPTARG, &parse_wrap_args },
270+
{ OPTION_CALLBACK, 'w', NULL, &log, N_("<w>[,<i1>[,<i2>]]"),
271+
N_("Linewrap output"),
272+
PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP,
273+
&parse_wrap_args },
272274
OPT_END(),
273275
};
274276

0 commit comments

Comments
 (0)