summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/m_option.c6
-rw-r--r--core/m_option.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/core/m_option.c b/core/m_option.c
index 3a14564830..4ee8ba97ad 100644
--- a/core/m_option.c
+++ b/core/m_option.c
@@ -2283,8 +2283,10 @@ static int parse_obj_settings_list(const m_option_t *opt, struct bstr name,
struct m_obj_desc desc;
if (!ol->get_desc(&desc, n))
break;
- mp_msg(MSGT_CFGPARSER, MSGL_INFO, " %-15s: %s\n",
- desc.name, desc.description);
+ if (!desc.hidden) {
+ mp_msg(MSGT_CFGPARSER, MSGL_INFO, " %-15s: %s\n",
+ desc.name, desc.description);
+ }
}
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "\n");
return M_OPT_EXIT - 1;
diff --git a/core/m_option.h b/core/m_option.h
index 7fd1ffd04c..73f3fabee8 100644
--- a/core/m_option.h
+++ b/core/m_option.h
@@ -110,6 +110,8 @@ struct m_obj_desc {
// This member is usually set my m_obj_list_find() only.
// Only works if options is not NULL.
const char *init_options;
+ // Don't list entries with "help"
+ bool hidden;
};
// Extra definition needed for \ref m_option_type_obj_settings_list options.