From: René Scharfe Date: Sun, 19 Aug 2018 17:34:48 +0000 (+0200) Subject: parseopt: group literal string alternatives in argument help X-Git-Tag: v2.19.0-rc1~16^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbc072f5d884d17a6102fd04ae6d2cfcaa98ad48;p=git parseopt: group literal string alternatives in argument help This formally clarifies that the "--option=" part is the same for all alternatives. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/builtin/pull.c b/builtin/pull.c index 49cc3beb4c..6eebb240da 100644 --- a/builtin/pull.c +++ b/builtin/pull.c @@ -135,7 +135,7 @@ static struct option pull_options[] = { /* Options passed to git-merge or git-rebase */ OPT_GROUP(N_("Options related to merging")), { OPTION_CALLBACK, 'r', "rebase", &opt_rebase, - "false|true|merges|preserve|interactive", + "(false|true|merges|preserve|interactive)", N_("incorporate changes by rebasing rather than merging"), PARSE_OPT_OPTARG, parse_opt_rebase }, OPT_PASSTHRU('n', NULL, &opt_diffstat, NULL, diff --git a/builtin/push.c b/builtin/push.c index 9cd8e8cd56..b5a941ccc2 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -561,7 +561,7 @@ int cmd_push(int argc, const char **argv, const char *prefix) 0, CAS_OPT_NAME, &cas, N_("refname>: