From d3b56435896d5fde202f56214e3ea3c2e153465d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 Jan 2014 23:06:06 +0100 Subject: lua: add a --lua-opts option, which can be queried by scripts The values set by this new option can be queried by Lua scripts using the mp.getopt() function. The function takes a string parameter, and returns the value of the first key that matches. If no key matches, nil is returned. --- DOCS/man/en/options.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DOCS/man') diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index f1ee540793..20e8ea4a9d 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1296,6 +1296,11 @@ OPTIONS Load a Lua script. You can load multiple scripts by separating them with commas (``,``). +``--lua-opts=key1=value1,key2=value2,...`` + Set options for scripts. A Lua script can query an option by key. If an + option is used and what semantics the option value has depends entirely on + the loaded Lua scripts. Values not claimed by any scripts are ignored. + ``--mc=`` Maximum A-V sync correction per frame (in seconds) -- cgit v1.2.3