Skip to content

Commit 6d5e9e5

Browse files
avargitster
authored andcommitted
bundle <cmd>: have usage_msg_opt() note the missing "<file>"
Improve the usage we emit on e.g. "git bundle create" to note why we're showing the usage, it's because the "<file>" argument is missing. We know that'll be the case for all parse_options_cmd_bundle() users, as they're passing the "char **bundle_file" parameter, which as the context shows we're expected to populate. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e778ecb commit 6d5e9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/bundle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int parse_options_cmd_bundle(int argc,
4848
argc = parse_options(argc, argv, NULL, options, usagestr,
4949
PARSE_OPT_STOP_AT_NON_OPTION);
5050
if (!argc)
51-
usage_with_options(usagestr, options);
51+
usage_msg_opt(_("need a <file> argument"), usagestr, options);
5252
*bundle_file = prefix_filename(prefix, argv[0]);
5353
return argc;
5454
}

0 commit comments

Comments
 (0)