summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-11 01:25:26 +0100
committerwm4 <wm4@nowhere>2014-02-11 01:25:26 +0100
commit891f58e834d8bc8e5de1dbd8939630655b5dad7a (patch)
tree8052840d7c3fee0412610bcf4f81a699cd3c6910 /DOCS
parentc776ac33e30323f56d778683ae0fc37a4e7ecc82 (diff)
downloadmpv-891f58e834d8bc8e5de1dbd8939630655b5dad7a.tar.bz2
mpv-891f58e834d8bc8e5de1dbd8939630655b5dad7a.tar.xz
manpage: document mp.commandv Lua command
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/en/lua.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/DOCS/man/en/lua.rst b/DOCS/man/en/lua.rst
index bc2e8f4428..c87388bfc6 100644
--- a/DOCS/man/en/lua.rst
+++ b/DOCS/man/en/lua.rst
@@ -45,6 +45,21 @@ The ``mp`` module is preloaded, although it can be loaded manually with
Returns true on success, or ``nil, error`` on error.
+``mp.commandv(arg1, arg2, ...)``
+ Similar to ``mp.command``, but pass each command argument as separate
+ parameter. This has the advantage that you don't have to care about
+ quoting and escaping in some cases.
+
+ Example:
+
+ ::
+
+ mp.command("loadfile " + filename + " append")
+ mp.commandv("loadfile", filename, "append")
+
+ These two commands are equivalent, except that the first version breaks
+ if the filename contains spaces or certain special characters.
+
``mp.get_property(name)``
Return the value of the given property as string. These are the same
properties as used in input.conf. See `Properties`_ for a list of