aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2018-08-02 21:17:58 +0200
committerJunio C Hamano <gitster@pobox.com>2018-08-03 08:36:20 -0700
commit1758abed1a54568eab720177fe60178203887e80 (patch)
tree330452515a524596181974fa864867e5db2c714f
parentcbd23de8bbf2e98d629f8e242901dd08f723106e (diff)
downloadgit-1758abed1a54568eab720177fe60178203887e80.tar.gz
send-pack: specify --force-with-lease argument help explicitly
Wrap each part of the argument help string in angular brackets to show that users need to replace them with actual values. Do that explicitly to balance the pairs nicely in the code and avoid confusing casual readers. Add the flag PARSE_OPT_LITERAL_ARGHELP to keep parseopt from adding another pair. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/send-pack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index fc4f0bb5fb..c8af374dee 100644
--- a/builtin/send-pack.c
+++ b/builtin/send-pack.c
@@ -177,9 +177,10 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
OPT_BOOL(0, "stdin", &from_stdin, N_("read refs from stdin")),
OPT_BOOL(0, "helper-status", &helper_status, N_("print status from remote helper")),
{ OPTION_CALLBACK,
- 0, CAS_OPT_NAME, &cas, N_("refname>:<expect"),
+ 0, CAS_OPT_NAME, &cas, N_("<refname>:<expect>"),
N_("require old value of ref to be at this value"),
- PARSE_OPT_OPTARG, parseopt_push_cas_option },
+ PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP,
+ parseopt_push_cas_option },
OPT_END()
};