summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-23 20:23:51 +0200
committerwm4 <wm4@nowhere>2017-06-23 20:23:51 +0200
commit48970cd485bf2811d1bbfcd69de55ff4f9c412e2 (patch)
tree1e758944110160aa0d18e84759c2c56a347d8010 /options/options.c
parentb0d13fa023e38ebdee0c0087e3b95e2692be0671 (diff)
downloadmpv-48970cd485bf2811d1bbfcd69de55ff4f9c412e2.tar.bz2
mpv-48970cd485bf2811d1bbfcd69de55ff4f9c412e2.tar.xz
options: unbreak -h
Sure is a simple thing to break.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/options/options.c b/options/options.c
index cacdcdfb17..620cc67318 100644
--- a/options/options.c
+++ b/options/options.c
@@ -244,10 +244,10 @@ const m_option_t mp_opts[] = {
.offset = -1},
OPT_FLAG("list-properties", property_print_help,
CONF_NOCFG | M_OPT_FIXED | M_OPT_NOPROP),
- { "help", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED | M_OPT_NOPROP,
- .offset = -1},
- { "h", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED | M_OPT_NOPROP,
- .offset = -1},
+ { "help", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED | M_OPT_NOPROP |
+ M_OPT_OPTIONAL_PARAM, .offset = -1},
+ { "h", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED | M_OPT_NOPROP |
+ M_OPT_OPTIONAL_PARAM, .offset = -1},
OPT_PRINT("list-protocols", stream_print_proto_list),
OPT_PRINT("version", print_version),