summaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2022-09-05 18:50:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-09-07 19:06:12 (GMT)
commitdd834d75caabd436e306c136f753c801220db2df (patch)
treeef09dd7d2ec65b49821dfa410ffe79adbf59df7b /builtin/notes.c
parent1c7c25aef12918b9305df19142ab5755297274a6 (diff)
downloadgit-dd834d75caabd436e306c136f753c801220db2df.zip
git-dd834d75caabd436e306c136f753c801220db2df.tar.gz
git-dd834d75caabd436e306c136f753c801220db2df.tar.bz2
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>
Diffstat (limited to 'builtin/notes.c')
-rw-r--r--builtin/notes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/notes.c b/builtin/notes.c
index 60410af..be51f69 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;