Skip to content

Commit dd834d7

Browse files
szedergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1c7c25a commit dd834d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/notes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ int cmd_notes(int argc, const char **argv, const char *prefix)
10171017
PARSE_OPT_SUBCOMMAND_OPTIONAL);
10181018
if (!fn) {
10191019
if (argc) {
1020-
error(_("unknown subcommand: %s"), argv[0]);
1020+
error(_("unknown subcommand: `%s'"), argv[0]);
10211021
usage_with_options(git_notes_usage, options);
10221022
}
10231023
fn = list;

builtin/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ int cmd_remote(int argc, const char **argv, const char *prefix)
17691769
return !!fn(argc, argv, prefix);
17701770
} else {
17711771
if (argc) {
1772-
error(_("unknown subcommand: %s"), argv[0]);
1772+
error(_("unknown subcommand: `%s'"), argv[0]);
17731773
usage_with_options(builtin_remote_usage, options);
17741774
}
17751775
return !!show_all();

0 commit comments

Comments
 (0)