Merge branch 'jb/parse-options-message-fix'

Error message fix.

* jb/parse-options-message-fix:
  parse-options: lose an unnecessary space in an error message
This commit is contained in:
Junio C Hamano
2020-02-12 12:41:37 -08:00
2 changed files with 4 additions and 4 deletions

View File

@ -419,7 +419,7 @@ static void check_typos(const char *arg, const struct option *options)
return;
if (starts_with(arg, "no-")) {
error(_("did you mean `--%s` (with two dashes ?)"), arg);
error(_("did you mean `--%s` (with two dashes)?"), arg);
exit(129);
}
@ -427,7 +427,7 @@ static void check_typos(const char *arg, const struct option *options)
if (!options->long_name)
continue;
if (starts_with(options->long_name, arg)) {
error(_("did you mean `--%s` (with two dashes ?)"), arg);
error(_("did you mean `--%s` (with two dashes)?"), arg);
exit(129);
}
}