]> git.ipfire.org Git - thirdparty/git.git/commitdiff
parse-options: lose an unnecessary space in an error message
authorJacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com>
Wed, 5 Feb 2020 13:07:23 +0000 (13:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Feb 2020 18:49:29 +0000 (10:49 -0800)
Signed-off-by: Jacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
t/t0040-parse-options.sh

index 60fae3ad213782dffa82e3c7dd246b47c566bf56..c278aff3a65a2d5e9e2be79596cdcd14d50e2a17 100644 (file)
@@ -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);
                }
        }
index 705a136ed92c99cda688f5e267204e59b0e532a9..9d7c7fdaa2af1d1f3b6119b4a88827fa5d4c06b6 100755 (executable)
@@ -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' '