]> git.ipfire.org Git - thirdparty/git.git/commitdiff
checkout-index: improve argument help for --stage
authorRené Scharfe <l.s.r@web.de>
Sun, 19 Aug 2018 17:34:35 +0000 (19:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2018 18:32:44 +0000 (11:32 -0700)
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>
builtin/checkout-index.c

index a730f6a1aa47a60d4c131ee47076411a129d8080..92e9d0d69f8f63619c7824af6ffc64864d486674 100644 (file)
@@ -172,7 +172,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
                        N_("write the content to temporary files")),
                OPT_STRING(0, "prefix", &state.base_dir, N_("string"),
                        N_("when creating files, prepend <string>")),
-               { OPTION_CALLBACK, 0, "stage", NULL, "1-3|all",
+               { OPTION_CALLBACK, 0, "stage", NULL, "(1|2|3|all)",
                        N_("copy out the files from named stage"),
                        PARSE_OPT_NONEG, option_parse_stage },
                OPT_END()