From dd834d75caabd436e306c136f753c801220db2df Mon Sep 17 00:00:00 2001 From: SZEDER Gábor Date: Mon, 5 Sep 2022 20:50:07 +0200 Subject: notes, remote: show unknown subcommands between `' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the "unknown subcommand" error message in 'git notes' and 'git remote' to wrap the offending argument between `', to make it consistent with the "unknown switch/option/subcommand" error messages in parse-options. Signed-off-by: SZEDER Gábor Signed-off-by: Junio C Hamano --- builtin/notes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/notes.c') diff --git a/builtin/notes.c b/builtin/notes.c index 60410af572..be51f69225 100644 --- a/builtin/notes.c +++ b/builtin/notes.c @@ -1017,7 +1017,7 @@ int cmd_notes(int argc, const char **argv, const char *prefix) PARSE_OPT_SUBCOMMAND_OPTIONAL); if (!fn) { if (argc) { - error(_("unknown subcommand: %s"), argv[0]); + error(_("unknown subcommand: `%s'"), argv[0]); usage_with_options(git_notes_usage, options); } fn = list; -- cgit v1.2.3