diff options
Diffstat (limited to 'options/m_config.c')
-rw-r--r-- | options/m_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |