]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf help: Fix --help for builtins
authorNamhyung Kim <namhyung@kernel.org>
Mon, 22 Oct 2012 07:12:23 +0000 (16:12 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Oct 2012 14:35:49 +0000 (12:35 -0200)
commit670ab5d21c7e168c89a36fdd2c69fb7af63d35a1
treec5e18a928562feabfc13a95341d50490c144289b
parentfc551f8d4427150da1ee7cbb0f53525c49ef4bca
perf help: Fix --help for builtins

It seems that commit cc5848213329 ("perf help: Remove use of die and
handle errors") caused the problem - it changed the initial value of
'help_format' from HELP_FORMAT_MAN to HELP_FORMAT_NONE.

This broke the --help option for all builtins, that would produce no
output, while 'man perf-top' would work it MANPATH is properly setup.

Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: David Ahern <dsahern@gmail.com>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/87r4orj7zc.fsf@sejong.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-help.c