diff options
Diffstat (limited to 'options/m_option.c')
-rw-r--r-- | options/m_option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/m_option.c b/options/m_option.c index bec2518b45..7e35153c84 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -77,6 +77,8 @@ int m_option_required_params(const m_option_t *opt) { if (opt->type->flags & M_OPT_TYPE_OPTIONAL_PARAM) return 0; + if (opt->flags & M_OPT_OPTIONAL_PARAM) + return 0; if (opt->type == &m_option_type_choice) { struct m_opt_choice_alternatives *alt; for (alt = opt->priv; alt->name; alt++) { |