From 48970cd485bf2811d1bbfcd69de55ff4f9c412e2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Jun 2017 20:23:51 +0200 Subject: options: unbreak -h Sure is a simple thing to break. --- options/m_option.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/m_option.c') 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++) { -- cgit v1.2.3