Skip to content

Commit fdd648b

Browse files
otommodghedo
authored andcommitted
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>
1 parent 334fd10 commit fdd648b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

DOCS/man/lua.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ The ``mp`` module is preloaded, although it can be loaded manually with
7474
These two commands are equivalent, except that the first version breaks
7575
if the filename contains spaces or certain special characters.
7676

77+
Note that properties are *not* expanded. You can use either ``mp.command``,
78+
the ``expand-properties`` prefix, or the ``mp.get_property`` family of
79+
functions.
80+
7781
``mp.get_property(name [,def])``
7882
Return the value of the given property as string. These are the same
7983
properties as used in input.conf. See `Properties`_ for a list of

0 commit comments

Comments
 (0)