diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/m_option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/m_option.c b/core/m_option.c index 90d8bb0359..7ea25c25b0 100644 --- a/core/m_option.c +++ b/core/m_option.c @@ -382,6 +382,8 @@ static int parse_choice(const struct m_option *opt, struct bstr name, mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Valid values are:"); for (alt = opt->priv; alt->name; alt++) mp_msg(MSGT_CFGPARSER, MSGL_ERR, " %s", alt->name); + if ((opt->flags & M_OPT_MIN) && (opt->flags & M_OPT_MAX)) + mp_msg(MSGT_CFGPARSER, MSGL_ERR, " %g-%g", opt->min, opt->max); mp_msg(MSGT_CFGPARSER, MSGL_ERR, "\n"); return M_OPT_INVALID; } |