From 71681e04ee956a64f2d6e067f3540ea918a16b61 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 11 Sep 2016 00:04:49 +0200 Subject: options: fix another minor regression vf_scale's "h" sub-option was interpreted as "--h". --- options/m_config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options') diff --git a/options/m_config.c b/options/m_config.c index 6992ca8c25..ff8700d0e0 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -774,7 +774,8 @@ static int m_config_parse_option(struct m_config *config, struct bstr name, return parse_profile(config, co->opt, name, param, set, flags); if (config->use_profiles && bstr_equals0(name, "show-profile")) return show_profile(config, param); - if (bstr_equals0(name, "h") || bstr_equals0(name, "help")) + if (config->is_toplevel && (bstr_equals0(name, "h") || + bstr_equals0(name, "help"))) return list_options(config, param, true); if (bstr_equals0(name, "list-options")) return list_options(config, bstr0("*"), false); -- cgit v1.2.3