]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib subcmd: Add OPT_STRING_OPTARG_SET option
authorJiri Olsa <jolsa@kernel.org>
Tue, 3 Jan 2017 08:19:54 +0000 (09:19 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Jan 2017 14:10:38 +0000 (11:10 -0300)
commit372994b219c9beefaef8fcd6a91fcb335118b210
tree66f45f717f76deb0e564013c68772f948037fe88
parentee2b21278c312bf2c259fc41670f83eb80f6e263
tools lib subcmd: Add OPT_STRING_OPTARG_SET option

To allow string options with a default argument and variable set when
the option is used.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Wang Nan <wangnan0@huawei.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1483431600-19887-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/subcmd/parse-options.c
tools/lib/subcmd/parse-options.h