Skip to content

Commit 168f32e

Browse files
rscharfegitster
authored andcommitted
checkout-index: improve argument help for --stage
Spell out all alternatives and avoid using a numerical range operator, as it is not mentioned in CodingGuidelines and the resulting string is still concise. Wrap them in parentheses to document clearly that the "--stage=" part is common among them. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53f9a3e commit 168f32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/checkout-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
172172
N_("write the content to temporary files")),
173173
OPT_STRING(0, "prefix", &state.base_dir, N_("string"),
174174
N_("when creating files, prepend <string>")),
175-
{ OPTION_CALLBACK, 0, "stage", NULL, "1-3|all",
175+
{ OPTION_CALLBACK, 0, "stage", NULL, "(1|2|3|all)",
176176
N_("copy out the files from named stage"),
177177
PARSE_OPT_NONEG, option_parse_stage },
178178
OPT_END()

0 commit comments

Comments
 (0)