parse-options: lose an unnecessary space in an error message

Signed-off-by: Jacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jacques Bodin-Hullin 2020-02-05 13:07:23 +00:00 коммит произвёл Junio C Hamano
Родитель d0654dc308
Коммит 395518cf7a
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -420,7 +420,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);
}
@ -428,7 +428,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);
}
}

Просмотреть файл

@ -242,7 +242,7 @@ test_expect_success 'Alias options do not contribute to abbreviation' '
'
cat >typo.err <<\EOF
error: did you mean `--boolean` (with two dashes ?)
error: did you mean `--boolean` (with two dashes)?
EOF
test_expect_success 'detect possible typos' '
@ -252,7 +252,7 @@ test_expect_success 'detect possible typos' '
'
cat >typo.err <<\EOF
error: did you mean `--ambiguous` (with two dashes ?)
error: did you mean `--ambiguous` (with two dashes)?
EOF
test_expect_success 'detect possible typos' '