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>
Jacques Bodin-Hullin committed
Feb 5, 2020 at 13:07 UTC
395518cf7a290f78232979593351d366a228e5c0
2 files changed
+4
-4
parse-options.c
+2
-2
@@ -420,7 +420,7 @@ static void check_typos(const char *arg, const struct option *options)
420
return;
421
422
if (starts_with(arg, "no-")) {
423
- error(_("did you mean `--%s` (with two dashes ?)"), arg);
423
+ error(_("did you mean `--%s` (with two dashes)?"), arg);
424
exit(129);
425
}
426
@@ -428,7 +428,7 @@ static void check_typos(const char *arg, const struct option *options)
428
if (!options->long_name)
429
continue;
430
if (starts_with(options->long_name, arg)) {
431
- error(_("did you mean `--%s` (with two dashes ?)"), arg);
431
+ error(_("did you mean `--%s` (with two dashes)?"), arg);
432
exit(129);
433
}
434
}
t/t0040-parse-options.sh
+2
-2
@@ -242,7 +242,7 @@ test_expect_success 'Alias options do not contribute to abbreviation' '
242
'
243
244
cat >typo.err <<\EOF
245
-error: did you mean `--boolean` (with two dashes ?)
245
+error: did you mean `--boolean` (with two dashes)?
246
EOF
247
248
test_expect_success 'detect possible typos' '
@@ -252,7 +252,7 @@ test_expect_success 'detect possible typos' '
252
'
253
254
cat >typo.err <<\EOF
255
-error: did you mean `--ambiguous` (with two dashes ?)
255
+error: did you mean `--ambiguous` (with two dashes)?
256
EOF
257
258
test_expect_success 'detect possible typos' '