{"thread":{"id":"49161","subject":"[PATCH] checkout-index: improve argument help for --stage","startedAt":"2018-08-19T17:34:47Z","lastAt":"2018-08-19T17:34:47Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"356034","messageId":"34a13c2b-05a4-8788-de2a-d794bde1420d@web.de","threadId":"49161","inReplyTo":null,"subject":"[PATCH] checkout-index: improve argument help for --stage","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2018-08-19T17:34:35Z","receivedAt":"2018-08-19T17:34:47Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Spell out all alternatives and avoid using a numerical range operator,\nas it is not mentioned in CodingGuidelines and the resulting string is\nstill concise.  Wrap them in parentheses to document clearly that the\n\"--stage=\" part is common among them.\n\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\n---\n builtin/checkout-index.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/checkout-index.c b/builtin/checkout-index.c\nindex a730f6a1aa..92e9d0d69f 100644\n--- a/builtin/checkout-index.c\n+++ b/builtin/checkout-index.c\n@@ -172,7 +172,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)\n \t\t\tN_(\"write the content to temporary files\")),\n \t\tOPT_STRING(0, \"prefix\", &state.base_dir, N_(\"string\"),\n \t\t\tN_(\"when creating files, prepend <string>\")),\n-\t\t{ OPTION_CALLBACK, 0, \"stage\", NULL, \"1-3|all\",\n+\t\t{ OPTION_CALLBACK, 0, \"stage\", NULL, \"(1|2|3|all)\",\n \t\t\tN_(\"copy out the files from named stage\"),\n \t\t\tPARSE_OPT_NONEG, option_parse_stage },\n \t\tOPT_END()\n-- \n2.18.0\n\n"}]}