]> git.notmuchmail.org Git - notmuch/blobdiff - command-line-arguments.h
cli: add .present field to opt desc to check if the arg was present
[notmuch] / command-line-arguments.h
index ff51abceb117dbac79da53c728c8555d56d37263..dfc808bdab7838c81746f7671ba2fa8b3b904ce9 100644 (file)
@@ -27,6 +27,9 @@ typedef struct notmuch_opt_desc {
     /* 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. */
+    notmuch_bool_t *present;
+
     /* Must be set for opt_keyword and opt_flags. */
     const struct notmuch_keyword *keywords;
 } notmuch_opt_desc_t;