From dbd31fd9d3aecd753d0dedbe8fefbaab6328dddd Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Fri, 27 Mar 2026 20:12:35 -0400 Subject: [PATCH] DOCS/man: use _name key for mp.command_native --- DOCS/man/input.rst | 2 +- DOCS/man/lua.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 8a8b7c11b2..c7ed0375b0 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1355,7 +1355,7 @@ Execution Commands :: local r = mp.command_native({ - name = "subprocess", + _name = "subprocess", playback_only = false, capture_stdout = true, args = {"cat", "/proc/cpuinfo"}, diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index b02ba3c197..73717a4940 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -849,7 +849,7 @@ strictly part of the guaranteed API. - rename ``cancellable`` field to ``playback_only`` - rename ``max_size`` to ``capture_size`` - set ``capture_stdout`` field to ``true`` if unset - - set ``name`` field to ``subprocess`` + - set ``_name`` field to ``subprocess`` - call ``mp.command_native(copied_t)`` - if the command failed, create a dummy result table - copy ``error_string`` to ``error`` field if the string is non-empty