summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-25 19:43:25 +0200
committerwm4 <wm4@nowhere>2014-05-25 19:43:25 +0200
commite648f7e783e9b063bbef4dcbb5f2c9e7a8c8e4e4 (patch)
tree5535848b905533dcd300e014ba8100ee54053349 /DOCS
parent9d0e5f6da64e2ee9936dd859d43e7d26fd42bde3 (diff)
downloadmpv-e648f7e783e9b063bbef4dcbb5f2c9e7a8c8e4e4.tar.bz2
mpv-e648f7e783e9b063bbef4dcbb5f2c9e7a8c8e4e4.tar.xz
manpage: lua: cosmetic changes to mp.options section
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/en/lua.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/DOCS/man/en/lua.rst b/DOCS/man/en/lua.rst
index 144b1f8a59..f500443203 100644
--- a/DOCS/man/en/lua.rst
+++ b/DOCS/man/en/lua.rst
@@ -411,15 +411,15 @@ with ``require 'mp.msg'``.
All of these are shortcuts and equivalent to the corresponding
``msg.log(level, ...)`` call.
-mp.options
-----------
+mp.options functions
+--------------------
mpv comes with a built-in module to manage options from config-files and the
command-line. All you have to do is to supply a table with default options to
the read_options function. The function will overwrite the default values
with values found in the config-file and the command-line (in that order).
-``read_options(table, identifier)``
+``options.read_options(table [, identifier])``
A ``table`` with key-value pairs. The type of the default values is
important for converting the values read from the config file or
command-line back. Do not use ``nil`` as a default value!
@@ -431,7 +431,7 @@ with values found in the config-file and the command-line (in that order).
Example implementation::
- local opt = require 'mp.options'
+ require 'mp.options'
local options = {
optionA = "defaultvalueA",
optionB = -0.5,