summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
Diffstat (limited to 'm_option.h')
-rw-r--r--m_option.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/m_option.h b/m_option.h
index 648c560305..7acdb067f0 100644
--- a/m_option.h
+++ b/m_option.h
@@ -297,6 +297,11 @@ struct m_option {
// The option should be set during command line pre-parsing
#define M_OPT_PRE_PARSE (1 << 6)
+// Accept an option without parameter, even if the option type normally requires
+// a parameter. The option value will be set to a default value.
+// For m_option_type_choice, the first listed choice will be used.
+#define M_OPT_IMPLICIT_DEFAULT (1 << 7)
+
// These are kept for compatibility with older code.
#define CONF_MIN M_OPT_MIN
#define CONF_MAX M_OPT_MAX