Skip to content

Commit 1758abe

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cbd23de commit 1758abe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builtin/send-pack.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
177177
OPT_BOOL(0, "stdin", &from_stdin, N_("read refs from stdin")),
178178
OPT_BOOL(0, "helper-status", &helper_status, N_("print status from remote helper")),
179179
{ OPTION_CALLBACK,
180-
0, CAS_OPT_NAME, &cas, N_("refname>:<expect"),
180+
0, CAS_OPT_NAME, &cas, N_("<refname>:<expect>"),
181181
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 },
183184
OPT_END()
184185
};
185186

0 commit comments

Comments
 (0)