summaryrefslogtreecommitdiff
path: root/builtin/shortlog.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2018-08-02 19:18:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-03 15:36:20 (GMT)
commitb8ade4c5766774207e05c8f92e262f8f6835bd3d (patch)
tree1aa61aeb026d69d73df86007ad34c25b44bde700 /builtin/shortlog.c
parent1758abed1a54568eab720177fe60178203887e80 (diff)
downloadgit-b8ade4c5766774207e05c8f92e262f8f6835bd3d.zip
git-b8ade4c5766774207e05c8f92e262f8f6835bd3d.tar.gz
git-b8ade4c5766774207e05c8f92e262f8f6835bd3d.tar.bz2
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>
Diffstat (limited to 'builtin/shortlog.c')
-rw-r--r--builtin/shortlog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/shortlog.c b/builtin/shortlog.c
index e29875b..98508fc 100644
--- a/builtin/shortlog.c
+++ b/builtin/shortlog.c
@@ -267,8 +267,10 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
N_("Suppress commit descriptions, only provides commit count")),
OPT_BOOL('e', "email", &log.email,
N_("Show the email address of each author")),
- { OPTION_CALLBACK, 'w', NULL, &log, N_("w[,i1[,i2]]"),
- N_("Linewrap output"), PARSE_OPT_OPTARG, &parse_wrap_args },
+ { OPTION_CALLBACK, 'w', NULL, &log, N_("<w>[,<i1>[,<i2>]]"),
+ N_("Linewrap output"),
+ PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP,
+ &parse_wrap_args },
OPT_END(),
};