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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Aug 19, 2018 at 19:34 UTC
168f32eb10c2c974ebdfb04dcfc48ef9f7c959b4
1 file changed
+1
-1
builtin/checkout-index.c
+1
-1
@@ -172,7 +172,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
172
N_("write the content to temporary files")),
173
OPT_STRING(0, "prefix", &state.base_dir, N_("string"),
174
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)",
176
N_("copy out the files from named stage"),
177
PARSE_OPT_NONEG, option_parse_stage },
178
OPT_END()