]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
perf tools: Setup pager when printing usage and help
authorNamhyung Kim <namhyung@kernel.org>
Sat, 24 Oct 2015 15:49:26 +0000 (00:49 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 26 Oct 2015 17:08:48 +0000 (14:08 -0300)
commit01b19455c08cc37d1c3ef174524278e84c92fec1
tree6e518e485f1c6cd145e05d394c9bf3f69aab2fa6
parentb272a59d835cd8ca6b45f41c66c61b473996c759
perf tools: Setup pager when printing usage and help

It's annoying to see error or help message when command has many options
like in perf record, report or top.  So setup pager when print parser
error or help message - it should be OK since no UI is enabled at the
parsing time.  The usage_with_options() already disables it by calling
exit_browser() anyway.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445701767-12731-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-options.c