Skip to content

Commit cbd23de

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9f6013a commit cbd23de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/pack-objects.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,9 +2941,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
29412941
OPT_BOOL(0, "all-progress-implied",
29422942
&all_progress_implied,
29432943
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>]"),
29452945
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 },
29472947
OPT_MAGNITUDE(0, "max-pack-size", &pack_size_limit,
29482948
N_("maximum size of each output pack file")),
29492949
OPT_BOOL(0, "local", &local,

0 commit comments

Comments
 (0)