X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=command-line-arguments.h;h=f722f97dde6e57c691437914b91cf42128384fa9;hp=76ca4dcbb276714a15b8524fbe106ffd6ba2fc78;hb=8dcc38ce85ce084d3f0f3cbeac7e4a768e651614;hpb=0f314c0c99befea599a68bea51d759b4133efef6 diff --git a/command-line-arguments.h b/command-line-arguments.h index 76ca4dcb..f722f97d 100644 --- a/command-line-arguments.h +++ b/command-line-arguments.h @@ -26,12 +26,19 @@ typedef struct notmuch_opt_desc { const char **opt_string; const char **opt_position; + /* for opt_keyword only: if no matching arguments were found, and + * keyword_no_arg_value is set, then use keyword_no_arg_value instead. */ + const char *keyword_no_arg_value; + /* Must be set except for opt_inherit and opt_position. */ const char *name; /* Optional, if non-NULL, set to true if the option is present. */ bool *present; + /* Optional, allow empty strings for opt_string. */ + bool allow_empty; + /* Must be set for opt_keyword and opt_flags. */ const struct notmuch_keyword *keywords; } notmuch_opt_desc_t;