summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com>2020-02-05 13:07:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-05 18:49:29 (GMT)
commit395518cf7a290f78232979593351d366a228e5c0 (patch)
tree7c37dc77a45b6be9635e9409d0e2bca1a76092da
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783 (diff)
downloadgit-395518cf7a290f78232979593351d366a228e5c0.zip
git-395518cf7a290f78232979593351d366a228e5c0.tar.gz
git-395518cf7a290f78232979593351d366a228e5c0.tar.bz2
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>
-rw-r--r--parse-options.c4
-rwxr-xr-xt/t0040-parse-options.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/parse-options.c b/parse-options.c
index 60fae3a..c278aff 100644
--- a/parse-options.c
+++ b/parse-options.c
@@ -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);
}
}
diff --git a/t/t0040-parse-options.sh b/t/t0040-parse-options.sh
index 705a136..9d7c7fd 100755
--- a/t/t0040-parse-options.sh
+++ b/t/t0040-parse-options.sh
@@ -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' '