diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-06 22:26:21 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-01-18 04:33:30 +0100 |
commit | 6340b54d5c39d1ef5647c79a98d219cc5d8228d2 (patch) | |
tree | c5dd0845a5da1e0ea84105334a92048a84c9b2d5 /TOOLS/bmovl-test.c | |
parent | 55560d62ee85f6336c2c38b1b112a4395e22bc14 (diff) | |
download | mpv-6340b54d5c39d1ef5647c79a98d219cc5d8228d2.tar.bz2 mpv-6340b54d5c39d1ef5647c79a98d219cc5d8228d2.tar.xz |
options: allow choice options without parameter
If an m_option_type_choice option is declared with M_OPT_IMPLICIT_DEFAULT
in its flags, it doesn't require a parameter. For example, if --opt is
such an option, it can be invoked as "--opt=val", "-opt", or "--opt".
The last two will set the option to the first choice the option declares.
Note that "-opt val" (using the old option syntax) is not allowed in this
case, as it would be ambiguous.
Normal option parsing should be unaffected.
Diffstat (limited to 'TOOLS/bmovl-test.c')
0 files changed, 0 insertions, 0 deletions