0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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 327b091909.
This commit is contained in:
Guido Cella 2023-10-09 22:11:11 +02:00 committed by Dudemanguy
parent cf762c1482
commit 2016e902e1

View File

@ -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)