summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-09-01 18:32:11 +0300
committerUoti Urpala <uau@mplayer2.org>2011-09-01 18:32:11 +0300
commit081e2d0b7b3e6cd95c1aad1ff454709d104ea184 (patch)
treec2a71071c09f5261df360ca97a1d6423182763ce /sub
parentb6628f4e1ece6e0b8dbd81cbfa5d6da30c73e824 (diff)
downloadmpv-081e2d0b7b3e6cd95c1aad1ff454709d104ea184.tar.bz2
mpv-081e2d0b7b3e6cd95c1aad1ff454709d104ea184.tar.xz
options: commandline: support "--no-opt" for flag options
When parsing the command line, map "--no-foo" to "--foo=no" if an option named "foo" exists and is a flag option. Non-empty parameters are not allowed with this syntax ("--no-foo=no" is invalid). This implementation is different from the existing "--nofoo" variants for most flag options. Those are implemented as completely separate options; there's an option named "fs" and a separate option named "nofs" (thus "--no-nofs" actually works after this change...). The reason for adding the new syntax is to support the much more standard "--no-" prefix and to allow eventually cleaning up the option handling (though the "nofoo" variants of existing options can't be removed soon due to backwards compatibility).
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions