1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/core
wm4 267a889cc2 options: unify single dash and double dash options
There were two option syntax variations:

    "old":  -opt value
    "new": --opt=value

"-opt=value" was invalid, and "--opt value" meant "--opt=" followed by
a separate option "value" (i.e. interpreted as filename). There isn't
really any reason to do this. The "old" syntax used to be ambiguous
(you had to call the option parser to know whether the following
argument is an option value or a new option), but that has been removed.
Further, using "=" in the option string is always unambiguous.

Since the distinction between the two option variants is confusing,
just remove the difference and allow "--opt value" and "-opt=value".

To make this easier, do some other cleanups as well (e.g. avoid having
to do a manual lookup of the option just to check for M_OPT_PRE_PARSE,
which somehow ended up with finally getting rid of the m_config.mode
member).

Error reporting is still a mess, and we opt for reporting too many
rather than too few errors to the user.

There shouldn't be many user-visible changes. The --framedrop and
--term-osd options now always require parameters.

The --mute option is intentionally made ambiguous: it works like a flag
option, but a value can be passed to it explicitly ("--mute=auto"). If
the interpretation of the option is ambiguous (like "--mute auto"), the
second string is interpreted as separate option or filename. (Normal
flag options are actually ambiguous in this way too.)
2013-02-09 00:21:17 +01:00
..
input core: remove --edlout functionality 2013-02-06 23:03:39 +01:00
timeline cache: refactor how cache enabling is done 2012-12-03 21:08:51 +01:00
asxparser.c
asxparser.h
av_log.c demux_lavf: add support for libavdevice 2012-12-03 21:08:51 +01:00
av_log.h
av_opts.c
av_opts.h
bstr.c Replace strsep() uses 2013-01-13 17:32:39 +01:00
bstr.h Replace strsep() uses 2013-01-13 17:32:39 +01:00
cfg-mplayer.h options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
codec-cfg.c video: simplify decoder pixel format handling 2013-01-13 17:39:31 +01:00
codec-cfg.h video: simplify decoder pixel format handling 2013-01-13 17:39:31 +01:00
command.c core: remove --edlout functionality 2013-02-06 23:03:39 +01:00
command.h
cpudetect.c
cpudetect.h
defaultopts.c x11: cleanup, refactor 2013-01-27 13:30:53 +01:00
defaultopts.h
encode_lavc.c sdl, encode_lavc: fix copyright headers 2012-12-28 11:41:30 +01:00
encode_lavc.h sdl, encode_lavc: fix copyright headers 2012-12-28 11:41:30 +01:00
encode.h
m_config.c options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
m_config.h options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
m_option.c options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
m_option.h options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
m_property.c
m_property.h
m_struct.c
m_struct.h
mp_common.c mp_common: improve OSD/status time formatting 2013-02-03 15:41:18 +01:00
mp_common.h mp_common: add some rectangle utility functions 2013-01-13 20:04:14 +01:00
mp_core.h core: remove --edlout functionality 2013-02-06 23:03:39 +01:00
mp_fifo.c input: do not generate double clicks for mouse wheel 2012-12-03 21:08:52 +01:00
mp_fifo.h
mp_msg.c mp_msg, getch2: unix tty background support 2013-01-23 18:05:34 +01:00
mp_msg.h
mp_osd.h core: minor cleanups 2012-11-20 18:00:16 +01:00
mp_talloc.h video/filter: change filter API, use refcounting, remove filter DR 2013-01-13 20:04:10 +01:00
mpc_info.h
mplayer.c core: remove --edlout functionality 2013-02-06 23:03:39 +01:00
mplayer.h sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
options.h x11: cleanup, refactor 2013-01-27 13:30:53 +01:00
parser-cfg.c options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
parser-cfg.h
parser-mpcmd.c options: unify single dash and double dash options 2013-02-09 00:21:17 +01:00
parser-mpcmd.h
path.c path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
path.h path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
playlist_parser.c options: rename -ss and -endpos, allow relative times 2012-11-16 21:21:15 +01:00
playlist_parser.h
playlist.c
playlist.h
quvi.c Fix lots of bugs in mp_http URL handling 2013-01-10 14:11:26 +01:00
screenshot.c screenshot: minor simplification, prefer VF over VO 2013-01-30 23:41:22 +01:00
screenshot.h
subopt-helper.c
subopt-helper.h
version.c build: identify the build time of the binary in the versioning output 2012-12-03 21:08:51 +01:00