summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-31 17:32:57 +0100
committerwm4 <wm4@nowhere>2019-10-31 17:32:57 +0100
commit706e708d2f17c68ceb13443fffd25053020da126 (patch)
tree86b2bc20869c596fb5ef55f52325d1afa014bddc /options/options.c
parente96ab5becb3afda9683bb4779937b94d27ac8fda (diff)
downloadmpv-706e708d2f17c68ceb13443fffd25053020da126.tar.bz2
mpv-706e708d2f17c68ceb13443fffd25053020da126.tar.xz
options: make --show-profile without parameters list all profiles
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index 9bac67101c..4fbf9d6401 100644
--- a/options/options.c
+++ b/options/options.c
@@ -332,8 +332,8 @@ const m_option_t mp_opts[] = {
// handled in m_config.c
{ "include", CONF_TYPE_STRING, M_OPT_FILE, .offset = -1},
{ "profile", CONF_TYPE_STRING_LIST, 0, .offset = -1},
- { "show-profile", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED | M_OPT_NOPROP,
- .offset = -1},
+ { "show-profile", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED |
+ M_OPT_NOPROP | M_OPT_OPTIONAL_PARAM, .offset = -1},
{ "list-options", &m_option_type_dummy_flag, CONF_NOCFG | M_OPT_FIXED |
M_OPT_NOPROP, .offset = -1},
OPT_FLAG("list-properties", property_print_help,