diff options
author | Otto Modinos <ottomodinos@gmail.com> | 2014-08-25 03:55:48 +0300 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-08-26 10:24:21 +0200 |
commit | fdd648bdf9c43701461824c38e8c4fb263a0a2d0 (patch) | |
tree | c24c05c87b706a36e12fb5adca77ac3389b8b26d | |
parent | 334fd10f1cd0e031a3679ca4dff439bfb162f904 (diff) | |
download | mpv-fdd648bdf9c43701461824c38e8c4fb263a0a2d0.tar.bz2 mpv-fdd648bdf9c43701461824c38e8c4fb263a0a2d0.tar.xz |
manpage: mention that mp.commandv doesn't expand properties
The little lua snippet at #488 as well as the actual implementation
seems to indicate that not expanding properties is indeed the correct
behavior. Document that.
Signed-off-by: wm4 <wm4@nowhere>
-rw-r--r-- | DOCS/man/lua.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 0ab53f0231..1b0f77cead 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -74,6 +74,10 @@ The ``mp`` module is preloaded, although it can be loaded manually with These two commands are equivalent, except that the first version breaks if the filename contains spaces or certain special characters. + Note that properties are *not* expanded. You can use either ``mp.command``, + the ``expand-properties`` prefix, or the ``mp.get_property`` family of + functions. + ``mp.get_property(name [,def])`` 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 |