summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2018-08-19 17:34:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-21 18:32:44 (GMT)
commit168f32eb10c2c974ebdfb04dcfc48ef9f7c959b4 (patch)
tree3af44865cad736c0b8bb42fb535dbddfe581a762 /builtin
parent53f9a3e157dbbc901a02ac2c73346d375e24978c (diff)
downloadgit-168f32eb10c2c974ebdfb04dcfc48ef9f7c959b4.zip
git-168f32eb10c2c974ebdfb04dcfc48ef9f7c959b4.tar.gz
git-168f32eb10c2c974ebdfb04dcfc48ef9f7c959b4.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/checkout-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout-index.c b/builtin/checkout-index.c
index a730f6a..92e9d0d 100644
--- a/builtin/checkout-index.c
+++ b/builtin/checkout-index.c
@@ -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()