diff options
Diffstat (limited to 'tools/perf/builtin-help.c')
-rw-r--r-- | tools/perf/builtin-help.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c index 215b584007b1..6d5a8a7faf48 100644 --- a/tools/perf/builtin-help.c +++ b/tools/perf/builtin-help.c | |||
@@ -29,14 +29,14 @@ enum help_format { | |||
29 | HELP_FORMAT_WEB, | 29 | HELP_FORMAT_WEB, |
30 | }; | 30 | }; |
31 | 31 | ||
32 | static int show_all = 0; | 32 | static bool show_all = false; |
33 | static enum help_format help_format = HELP_FORMAT_MAN; | 33 | static enum help_format help_format = HELP_FORMAT_MAN; |
34 | static struct option builtin_help_options[] = { | 34 | static struct option builtin_help_options[] = { |
35 | OPT_BOOLEAN('a', "all", &show_all, "print all available commands"), | 35 | OPT_BOOLEAN('a', "all", &show_all, "print all available commands"), |
36 | OPT_SET_INT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN), | 36 | OPT_SET_UINT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN), |
37 | OPT_SET_INT('w', "web", &help_format, "show manual in web browser", | 37 | OPT_SET_UINT('w', "web", &help_format, "show manual in web browser", |
38 | HELP_FORMAT_WEB), | 38 | HELP_FORMAT_WEB), |
39 | OPT_SET_INT('i', "info", &help_format, "show info page", | 39 | OPT_SET_UINT('i', "info", &help_format, "show info page", |
40 | HELP_FORMAT_INFO), | 40 | HELP_FORMAT_INFO), |
41 | OPT_END(), | 41 | OPT_END(), |
42 | }; | 42 | }; |