diff options
author | Guido Cella <guido@guidocella.xyz> | 2023-10-09 22:11:11 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-10 18:38:15 +0000 |
commit | 2016e902e19d8b48a8aa4a69c06fe58f3d31916f (patch) | |
tree | 4c6fb8ff3af157c12c26974403eeb289fe7d4816 | |
parent | cf762c1482566dc8fcdea493b8f8a8a1b0710205 (diff) | |
download | mpv-2016e902e19d8b48a8aa4a69c06fe58f3d31916f.tar.bz2 mpv-2016e902e19d8b48a8aa4a69c06fe58f3d31916f.tar.xz |
DOCS/lua: update read_options example
This still shows the old way of calling read_options even though it was
deprecated 8 years in ago 327b091909e.
-rw-r--r-- | DOCS/man/lua.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 494e95fcd8..695644d0ba 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -680,13 +680,13 @@ with values found in the config-file and the command-line (in that order). Example implementation:: - require 'mp.options' local options = { optionA = "defaultvalueA", optionB = -0.5, optionC = true, } - read_options(options, "myscript") + + require "mp.options".read_options(options, "myscript") print(options.optionA) |