summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2018-08-02 19:17:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-03 15:36:20 (GMT)
commitcbd23de8bbf2e98d629f8e242901dd08f723106e (patch)
treec27f9bbc7b49088786f83c8a532374d171d8f49c /builtin
parent9f6013a88d71860433a0c11571dc87aef3c9c809 (diff)
downloadgit-cbd23de8bbf2e98d629f8e242901dd08f723106e.zip
git-cbd23de8bbf2e98d629f8e242901dd08f723106e.tar.gz
git-cbd23de8bbf2e98d629f8e242901dd08f723106e.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 6b9cfc2..5d7566a 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -2941,9 +2941,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
OPT_BOOL(0, "all-progress-implied",
&all_progress_implied,
N_("similar to --all-progress when progress meter is shown")),
- { OPTION_CALLBACK, 0, "index-version", NULL, N_("version[,offset]"),
+ { OPTION_CALLBACK, 0, "index-version", NULL, N_("<version>[,<offset>]"),
N_("write the pack index file in the specified idx format version"),
- 0, option_parse_index_version },
+ PARSE_OPT_LITERAL_ARGHELP, option_parse_index_version },
OPT_MAGNITUDE(0, "max-pack-size", &pack_size_limit,
N_("maximum size of each output pack file")),
OPT_BOOL(0, "local", &local,