|
@@ -433,7 +433,7 @@ match:
|
|
|
|
|
|
if (ambiguous_option) {
|
|
if (ambiguous_option) {
|
|
fprintf(stderr,
|
|
fprintf(stderr,
|
|
- " Error: Ambiguous option: %s (could be --%s%s or --%s%s)",
|
|
|
|
|
|
+ " Error: Ambiguous option: %s (could be --%s%s or --%s%s)\n",
|
|
arg,
|
|
arg,
|
|
(ambiguous_flags & OPT_UNSET) ? "no-" : "",
|
|
(ambiguous_flags & OPT_UNSET) ? "no-" : "",
|
|
ambiguous_option->long_name,
|
|
ambiguous_option->long_name,
|
|
@@ -458,7 +458,7 @@ static void check_typos(const char *arg, const struct option *options)
|
|
return;
|
|
return;
|
|
|
|
|
|
if (strstarts(arg, "no-")) {
|
|
if (strstarts(arg, "no-")) {
|
|
- fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)", arg);
|
|
|
|
|
|
+ fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)\n", arg);
|
|
exit(129);
|
|
exit(129);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -466,7 +466,7 @@ static void check_typos(const char *arg, const struct option *options)
|
|
if (!options->long_name)
|
|
if (!options->long_name)
|
|
continue;
|
|
continue;
|
|
if (strstarts(options->long_name, arg)) {
|
|
if (strstarts(options->long_name, arg)) {
|
|
- fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)", arg);
|
|
|
|
|
|
+ fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)\n", arg);
|
|
exit(129);
|
|
exit(129);
|
|
}
|
|
}
|
|
}
|
|
}
|