Merge branch 'jb/parse-options-message-fix'
Error message fix. * jb/parse-options-message-fix: parse-options: lose an unnecessary space in an error messagemaint
commit
db72f8c940
|
@ -419,7 +419,7 @@ static void check_typos(const char *arg, const struct option *options)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (starts_with(arg, "no-")) {
|
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);
|
exit(129);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ static void check_typos(const char *arg, const struct option *options)
|
||||||
if (!options->long_name)
|
if (!options->long_name)
|
||||||
continue;
|
continue;
|
||||||
if (starts_with(options->long_name, arg)) {
|
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);
|
exit(129);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -242,7 +242,7 @@ test_expect_success 'Alias options do not contribute to abbreviation' '
|
||||||
'
|
'
|
||||||
|
|
||||||
cat >typo.err <<\EOF
|
cat >typo.err <<\EOF
|
||||||
error: did you mean `--boolean` (with two dashes ?)
|
error: did you mean `--boolean` (with two dashes)?
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
test_expect_success 'detect possible typos' '
|
test_expect_success 'detect possible typos' '
|
||||||
|
@ -252,7 +252,7 @@ test_expect_success 'detect possible typos' '
|
||||||
'
|
'
|
||||||
|
|
||||||
cat >typo.err <<\EOF
|
cat >typo.err <<\EOF
|
||||||
error: did you mean `--ambiguous` (with two dashes ?)
|
error: did you mean `--ambiguous` (with two dashes)?
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
test_expect_success 'detect possible typos' '
|
test_expect_success 'detect possible typos' '
|
||||||
|
|
Loading…
Reference in New Issue