X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=command-line-arguments.h;h=4c4d240e10dc17a4e3a966b839a7013c6d40a360;hp=de1734ad2fdb3f0c5444c73abc5f74b7cbd99cf2;hb=43668950626f347f05aad7d49cd9ea4383030443;hpb=f717d2ece1836c863f9cc02abd1ff2539307cd1d diff --git a/command-line-arguments.h b/command-line-arguments.h index de1734ad..4c4d240e 100644 --- a/command-line-arguments.h +++ b/command-line-arguments.h @@ -5,9 +5,11 @@ enum notmuch_opt_type { NOTMUCH_OPT_END = 0, + NOTMUCH_OPT_INHERIT, /* another options table */ 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 */ }; @@ -68,8 +70,8 @@ parse_arguments (int argc, char **argv, const notmuch_opt_desc_t *options, int o * functions. */ -notmuch_bool_t -parse_option (const char *arg, const notmuch_opt_desc_t* options); +int +parse_option (int argc, char **argv, const notmuch_opt_desc_t* options, int opt_index); notmuch_bool_t parse_position_arg (const char *arg,