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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Aug 2, 2018 at 21:18 UTC b8ade4c5766774207e05c8f92e262f8f6835bd3d
1 file changed +4 -2
builtin/shortlog.c
+4 -2
@@ -267,8 +267,10 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
267 N_("Suppress commit descriptions, only provides commit count")),
268 OPT_BOOL('e', "email", &log.email,
269 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 },
274 OPT_END(),
275 };
276