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)