mpv/options
wm4 1eb533afb3 options: handle choice -> flag fallback automatically
In the past it happened quite often that flag options (yes/no) were
changed to choice options (yes/no/some more). The problem with this was
that while flag options don't need a parameter, this wasn't the case
with choice options. A hack was introduced to compensate for this:
setting M_OPT_OPTIONAL_PARAM on the option, and an empty string ("") was
added as choice, so that the choice could be used like a flag. So, for
example, "--mute" would set the choice "".

Fix this by 1. not requiring a parameter if there's a "yes" choice, and
2. redirect an empty parameter to "yes". The effect is that a choice
option with the choices ["yes", "no"] is pretty much equivalent to a
flag option.
2015-02-27 18:31:24 +01:00
..
m_config.c m_config: log options set by the client API too 2015-02-16 20:04:31 +01:00
m_config.h options: add slightly more sophistcated mechanism for option deprecation 2014-12-11 01:04:15 +01:00
m_option.c options: handle choice -> flag fallback automatically 2015-02-27 18:31:24 +01:00
m_option.h options: handle choice -> flag fallback automatically 2015-02-27 18:31:24 +01:00
m_property.c options: fix parsing for options/af and options/vf 2015-02-03 13:40:55 +01:00
m_property.h
options.c options: handle choice -> flag fallback automatically 2015-02-27 18:31:24 +01:00
options.h ytdl: add "--ytdl-params" option 2015-02-25 22:32:48 +01:00
parse_commandline.c demux: add a demux_open_url() function 2015-02-20 21:56:55 +01:00
parse_commandline.h
parse_configfile.c
parse_configfile.h
path.c player: undeprecate 'config' files 2015-02-15 14:28:49 +01:00
path.h player: undeprecate 'config' files 2015-02-15 14:28:49 +01:00