summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-options.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2012-10-03 00:21:34 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-02 18:36:44 -0300
commit4d8061faca7a50010f037374410f0c3647c3ecf8 (patch)
tree820c67bbdd04d129826888aef56ddf18a6cd516e /tools/perf/util/parse-options.h
parent35c2fde1155cc7225361edf43d8efd0aabd28a0c (diff)
downloadop-kernel-dev-4d8061faca7a50010f037374410f0c3647c3ecf8.zip
op-kernel-dev-4d8061faca7a50010f037374410f0c3647c3ecf8.tar.gz
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>
Diffstat (limited to 'tools/perf/util/parse-options.h')
-rw-r--r--tools/perf/util/parse-options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/parse-options.h b/tools/perf/util/parse-options.h
index abc31a1..7bb5999 100644
--- a/tools/perf/util/parse-options.h
+++ b/tools/perf/util/parse-options.h
@@ -140,6 +140,7 @@ extern NORETURN void usage_with_options(const char * const *usagestr,
enum {
PARSE_OPT_HELP = -1,
PARSE_OPT_DONE,
+ PARSE_OPT_LIST,
PARSE_OPT_UNKNOWN,
};
OpenPOWER on IntegriCloud