Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-12-27 21:39:10 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-28 02:30:52 +0300
commit6d5e9e53aa46b97227a25c85400fd00b8237411a (patch)
tree38a5f78ca653b1fb3bc6a89496f37e899f4d763a /builtin/bundle.c
parente778ecbcee3a4a14e46c06d66328fdfc0af8780d (diff)
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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/bundle.c')
-rw-r--r--builtin/bundle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/bundle.c b/builtin/bundle.c
index 34b4aa611b..4b63574c98 100644
--- a/builtin/bundle.c
+++ b/builtin/bundle.c
@@ -48,7 +48,7 @@ static int parse_options_cmd_bundle(int argc,
argc = parse_options(argc, argv, NULL, options, usagestr,
PARSE_OPT_STOP_AT_NON_OPTION);
if (!argc)
- usage_with_options(usagestr, options);
+ usage_msg_opt(_("need a <file> argument"), usagestr, options);
*bundle_file = prefix_filename(prefix, argv[0]);
return argc;
}