]> rtime.felk.cvut.cz Git - notmuch.git/commit
cli: Add support for parsing command line "flag" options
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 21 Sep 2014 18:37:57 +0000 (20:37 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 22 Sep 2014 08:36:36 +0000 (10:36 +0200)
commit3755aadfbe1eb9a2fc9d1230c5b54b447666f206
tree70b6a44ebaedf2ab5809ee1ff87b59ac80466ea0
parent9df4107fc4df164b0155e3d34e1d06363106e0dc
cli: Add support for parsing command line "flag" options

This allows having multiple flags as a value of a command line
option (e.g. --foo=bar,baz). The values of the given flags are OR'd
together.

This was inspired by a similar patch from Jani Nikula.
command-line-arguments.c
command-line-arguments.h
test/Makefile.local
test/T410-argument-parsing.sh
test/arg-test.c