diff options
Diffstat (limited to 'tools/lib/subcmd/parse-options.c')
-rw-r--r-- | tools/lib/subcmd/parse-options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/subcmd/parse-options.c b/tools/lib/subcmd/parse-options.c index f6a1babcbac4..cb7154eccbdc 100644 --- a/tools/lib/subcmd/parse-options.c +++ b/tools/lib/subcmd/parse-options.c | |||
@@ -433,7 +433,7 @@ match: | |||
433 | 433 | ||
434 | if (ambiguous_option) { | 434 | if (ambiguous_option) { |
435 | fprintf(stderr, | 435 | fprintf(stderr, |
436 | " Error: Ambiguous option: %s (could be --%s%s or --%s%s)", | 436 | " Error: Ambiguous option: %s (could be --%s%s or --%s%s)\n", |
437 | arg, | 437 | arg, |
438 | (ambiguous_flags & OPT_UNSET) ? "no-" : "", | 438 | (ambiguous_flags & OPT_UNSET) ? "no-" : "", |
439 | ambiguous_option->long_name, | 439 | ambiguous_option->long_name, |
@@ -458,7 +458,7 @@ static void check_typos(const char *arg, const struct option *options) | |||
458 | return; | 458 | return; |
459 | 459 | ||
460 | if (strstarts(arg, "no-")) { | 460 | if (strstarts(arg, "no-")) { |
461 | fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)", arg); | 461 | fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)\n", arg); |
462 | exit(129); | 462 | exit(129); |
463 | } | 463 | } |
464 | 464 | ||
@@ -466,7 +466,7 @@ static void check_typos(const char *arg, const struct option *options) | |||
466 | if (!options->long_name) | 466 | if (!options->long_name) |
467 | continue; | 467 | continue; |
468 | if (strstarts(options->long_name, arg)) { | 468 | if (strstarts(options->long_name, arg)) { |
469 | fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)", arg); | 469 | fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)\n", arg); |
470 | exit(129); | 470 | exit(129); |
471 | } | 471 | } |
472 | } | 472 | } |