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>
René Scharfe committed
Aug 2, 2018 at 21:17 UTC
1758abed1a54568eab720177fe60178203887e80
1 file changed
+3
-2
builtin/send-pack.c
+3
-2
@@ -177,9 +177,10 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
177
OPT_BOOL(0, "stdin", &from_stdin, N_("read refs from stdin")),
178
OPT_BOOL(0, "helper-status", &helper_status, N_("print status from remote helper")),
179
{ OPTION_CALLBACK,
180
- 0, CAS_OPT_NAME, &cas, N_("refname>:<expect"),
180
+ 0, CAS_OPT_NAME, &cas, N_("<refname>:<expect>"),
181
N_("require old value of ref to be at this value"),
182
- PARSE_OPT_OPTARG, parseopt_push_cas_option },
182
+ PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP,
183
+ parseopt_push_cas_option },
184
OPT_END()
185
};
186