diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-03-22 12:10:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-22 13:47:36 -0400 |
commit | 478b0973bf8c90db3677fbb8d812e2bdefc43d9b (patch) | |
tree | 73123485898d3a2a2a5c18dba3957a3004ddb541 | |
parent | 084ab9f862416b2ddb4bb9804884de19bf09774d (diff) |
perf tools: Exit browser before printing usage when unkown option passed
If not the screen will get garbled when using newt.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1269274229-20442-5-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | tools/perf/util/parse-options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/parse-options.c b/tools/perf/util/parse-options.c index efebd5b476b3..79dfa0c34b3c 100644 --- a/tools/perf/util/parse-options.c +++ b/tools/perf/util/parse-options.c | |||
@@ -500,6 +500,7 @@ int usage_with_options_internal(const char * const *usagestr, | |||
500 | void usage_with_options(const char * const *usagestr, | 500 | void usage_with_options(const char * const *usagestr, |
501 | const struct option *opts) | 501 | const struct option *opts) |
502 | { | 502 | { |
503 | exit_browser(false); | ||
503 | usage_with_options_internal(usagestr, opts, 0); | 504 | usage_with_options_internal(usagestr, opts, 0); |
504 | exit(129); | 505 | exit(129); |
505 | } | 506 | } |