summaryrefslogtreecommitdiffstats
path: root/command-line-arguments.h
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2014-11-05 01:25:54 +0100
committerDavid Bremner <david@tethera.net>2014-11-05 23:17:00 +0100
commit4387112de00d27e6957ca2b6a268242f0bb5c756 (patch)
treeb4a60cb6f04ca00062abb652d2ae99e2887a4915 /command-line-arguments.h
parentf0dfceaf902681e7d5fd56a3c272a17a71996141 (diff)
cli: add support for hierarchical command line option arrays
NOTMUCH_OPT_INHERIT expects a notmuch_opt_desc_t * pointer in output_var. The "Unrecognized option" message was moved out of parse_option() to not be emitted twice or when parsing a non-inherited option.
Diffstat (limited to 'command-line-arguments.h')
-rw-r--r--command-line-arguments.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/command-line-arguments.h b/command-line-arguments.h
index 6444129a..309aaf2b 100644
--- a/command-line-arguments.h
+++ b/command-line-arguments.h
@@ -5,6 +5,7 @@
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 */