perf tools: Long option completion support for each subcommands
authorNamhyung Kim <namhyung@kernel.org>
Tue, 2 Oct 2012 15:21:34 +0000 (00:21 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 2 Oct 2012 21:36:44 +0000 (18:36 -0300)
commit4d8061faca7a50010f037374410f0c3647c3ecf8
tree820c67bbdd04d129826888aef56ddf18a6cd516e
parent35c2fde1155cc7225361edf43d8efd0aabd28a0c
perf tools: Long option completion support for each subcommands

Add internal --list-opts option to print all of long option names to
stdout so that it can be used for bash completion engine.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1349191294-6926-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bash_completion
tools/perf/util/parse-options.c
tools/perf/util/parse-options.h