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)
commitb66fb1da5a8cac3f5c3cdbe41937c91efc4e76a4
tree66f45f717f76deb0e564013c68772f948037fe88
parent1f2ed153b916c95a49a1ca9d7107738664224b7f
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