WSL2-Linux-Kernel/tools/lib/subcmd
Namhyung Kim 369a247897 tools lib subcmd: Suppport cascading options
Sometimes subcommand have common options and it can only handled in the
upper level command unless it duplicates the options.

This patch adds a parent field and fallback to the parent if the given
argument was not found in the current options.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20161024030003.28534-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-10-25 10:12:16 -03:00
..
Build
Makefile tools lib subcmd: Respect WERROR=0 for build 2016-07-04 20:27:26 -03:00
exec-cmd.c
exec-cmd.h
help.c
help.h
pager.c perf tools: Query terminal width and use in perf list 2016-10-03 21:35:45 -03:00
pager.h perf tools: Query terminal width and use in perf list 2016-10-03 21:35:45 -03:00
parse-options.c tools lib subcmd: Suppport cascading options 2016-10-25 10:12:16 -03:00
parse-options.h tools lib subcmd: Suppport cascading options 2016-10-25 10:12:16 -03:00
run-command.c tools lib subcmd: Use str_error_r() 2016-07-12 15:20:30 -03:00
run-command.h
sigchain.c
sigchain.h
subcmd-config.c
subcmd-config.h
subcmd-util.h