notes, remote: show unknown subcommands between `'
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 <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
SZEDER Gábor committed
Sep 5, 2022 at 20:50 UTC
dd834d75caabd436e306c136f753c801220db2df
2 files changed
+2
-2
builtin/notes.c
+1
-1
@@ -1017,7 +1017,7 @@ int cmd_notes(int argc, const char **argv, const char *prefix)
1017
PARSE_OPT_SUBCOMMAND_OPTIONAL);
1018
if (!fn) {
1019
if (argc) {
1020
- error(_("unknown subcommand: %s"), argv[0]);
1020
+ error(_("unknown subcommand: `%s'"), argv[0]);
1021
usage_with_options(git_notes_usage, options);
1022
}
1023
fn = list;
builtin/remote.c
+1
-1
@@ -1769,7 +1769,7 @@ int cmd_remote(int argc, const char **argv, const char *prefix)
1769
return !!fn(argc, argv, prefix);
1770
} else {
1771
if (argc) {
1772
- error(_("unknown subcommand: %s"), argv[0]);
1772
+ error(_("unknown subcommand: `%s'"), argv[0]);
1773
usage_with_options(builtin_remote_usage, options);
1774
}
1775
return !!show_all();