summaryrefslogtreecommitdiffstats
path: root/options/m_option.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-23 20:23:51 +0200
committerwm4 <wm4@nowhere>2017-06-23 20:23:51 +0200
commit48970cd485bf2811d1bbfcd69de55ff4f9c412e2 (patch)
tree1e758944110160aa0d18e84759c2c56a347d8010 /options/m_option.c
parentb0d13fa023e38ebdee0c0087e3b95e2692be0671 (diff)
downloadmpv-48970cd485bf2811d1bbfcd69de55ff4f9c412e2.tar.bz2
mpv-48970cd485bf2811d1bbfcd69de55ff4f9c412e2.tar.xz
options: unbreak -h
Sure is a simple thing to break.
Diffstat (limited to 'options/m_option.c')
-rw-r--r--options/m_option.c2
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++) {