diff options
author | wm4 <wm4@nowhere> | 2018-01-24 03:20:15 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-25 20:18:32 -0800 |
commit | 0d359879c9edfaefe8f4d500802781e32f2c8d9a (patch) | |
tree | b412fe69f8e0723ef11be2b9018e2e43768312f0 /DOCS/man/input.rst | |
parent | 9e64b9382265fb688fecda15b28ad6c41b587cd6 (diff) | |
download | mpv-0d359879c9edfaefe8f4d500802781e32f2c8d9a.tar.bz2 mpv-0d359879c9edfaefe8f4d500802781e32f2c8d9a.tar.xz |
command: add a change-list command
Requested. See manpage additions.
The main reason why this goes through the trouble to keep the
action/operation parameter separate is so that we don't expose some
option parser implementation details to the command (although that is a
relatively weak reason), and also to make it more different from the
"set" command, which can't support this type of option as it goes
through the property layer.
Fixes #5435.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r-- | DOCS/man/input.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 1a9c07e19d..188858d86d 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -732,6 +732,23 @@ Input Commands that are Possibly Subject to Change ``load-script "<path>"`` Load a script, similar to the ``--script`` option. +``change-list "<option>" "<operation>" "<value>"`` + This command changes list options as described in `List Options`_. The + ``<option>`` parameter is the normal option name, while ``<operation>`` is + the suffix or action used on the option. + + Some operations take no value, but the command still requires the value + parameter. In these cases, the value must be an empty string. + + .. admonition:: Example + + ``change-list glsl-shaders append file.glsl`` + + Add a filename to the ``glsl-shaders`` list. The command line + equivalent is ``--glsl-shaders-append=file.glsl`` or alternatively + ``--glsl-shader=file.glsl``. + + Undocumented commands: ``tv-last-channel`` (TV/DVB only), ``ao-reload`` (experimental/internal). |