From 1e2d409fb4f08dd73554c8c065292af325bf9f12 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 28 Feb 2014 22:25:48 +0100 Subject: lua: add option to disable auto-loading of lua scripts --- DOCS/man/en/mpv.rst | 3 ++- DOCS/man/en/options.rst | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'DOCS/man') diff --git a/DOCS/man/en/mpv.rst b/DOCS/man/en/mpv.rst index fc17e759f0..39e33f75c0 100644 --- a/DOCS/man/en/mpv.rst +++ b/DOCS/man/en/mpv.rst @@ -603,7 +603,8 @@ FILES ``~/.mpv/lua/`` All files in this directly are loaded as if they were passed to the ``--lua`` option. They are loaded in alphabetical order, and sub-directories - and files with no ``.lua`` extension are ignored. + and files with no ``.lua`` extension are ignored. The ``--load-scripts=no`` + option disables loading these files. EXAMPLES OF MPV USAGE diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index ca887eccfb..6461750062 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1286,6 +1286,10 @@ OPTIONS ``--list-properties`` Print a list of the available properties. +``--load-scripts=`` + If set to ``no``, don't auto-load scripts from ``~/.mpv/lua/``. + (Default: ``yes``) + ``--load-unsafe-playlists`` Normally, something like ``mpv playlist.m3u`` won't load the playlist. This is because the playlist code is unsafe. (This is the same in all other -- cgit v1.2.3