diff options
author | Jani Nikula <jani@nikula.org> | 2014-10-31 22:53:56 +0100 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-11-01 08:02:21 +0100 |
commit | ecc4a9a6441a3b7011d9afb2ca67e9d4ea1fca48 (patch) | |
tree | 3c8f3ee740b6f3d418c0c3d781bfb3eac4904b1c /command-line-arguments.h | |
parent | dc398119482b58be5f46cf636127794a002b36e6 (diff) |
cli: Add support for parsing keyword-flag arguments
This allows having multiple --foo=bar --foo=baz options on the command
line, with the corresponding values OR'd together.
[Test added by Michal Sojka]
Diffstat (limited to 'command-line-arguments.h')
-rw-r--r-- | command-line-arguments.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/command-line-arguments.h b/command-line-arguments.h index de1734ad..6444129a 100644 --- a/command-line-arguments.h +++ b/command-line-arguments.h @@ -8,6 +8,7 @@ enum notmuch_opt_type { NOTMUCH_OPT_BOOLEAN, /* --verbose */ NOTMUCH_OPT_INT, /* --frob=8 */ NOTMUCH_OPT_KEYWORD, /* --format=raw|json|text */ + NOTMUCH_OPT_KEYWORD_FLAGS, /* the above with values OR'd together */ NOTMUCH_OPT_STRING, /* --file=/tmp/gnarf.txt */ NOTMUCH_OPT_POSITION /* notmuch dump pos_arg */ }; |