pack-objects: specify --index-version argument help explicitly
Wrap both placeholders in the argument help string in angular brackets to signal that users needs replace them with some actual value. Use the flag PARSE_OPT_LITERAL_ARGHELP to prevent parseopt from adding another pair. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Aug 2, 2018 at 21:17 UTC
cbd23de8bbf2e98d629f8e242901dd08f723106e
1 file changed
+2
-2
builtin/pack-objects.c
+2
-2
@@ -2941,9 +2941,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
2941
OPT_BOOL(0, "all-progress-implied",
2942
&all_progress_implied,
2943
N_("similar to --all-progress when progress meter is shown")),
2944
- { OPTION_CALLBACK, 0, "index-version", NULL, N_("version[,offset]"),
2944
+ { OPTION_CALLBACK, 0, "index-version", NULL, N_("<version>[,<offset>]"),
2945
N_("write the pack index file in the specified idx format version"),
2946
- 0, option_parse_index_version },
2946
+ PARSE_OPT_LITERAL_ARGHELP, option_parse_index_version },
2947
OPT_MAGNITUDE(0, "max-pack-size", &pack_size_limit,
2948
N_("maximum size of each output pack file")),
2949
OPT_BOOL(0, "local", &local,