From 891f58e834d8bc8e5de1dbd8939630655b5dad7a Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Feb 2014 01:25:26 +0100 Subject: manpage: document mp.commandv Lua command --- DOCS/man/en/lua.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'DOCS') 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 -- cgit v1.2.3