command/queue: add optional position parameter to "add"

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1285
This commit is contained in:
Max Kellermann
2021-10-23 13:00:34 +02:00
parent 35c4c7e8bf
commit 6f595e9abb
5 changed files with 28 additions and 7 deletions

View File

@@ -689,11 +689,14 @@ Whenever possible, ids should be used.
.. _command_add:
:command:`add {URI}`
:command:`add {URI} [POSITION]`
Adds the file ``URI`` to the playlist
(directories add recursively). ``URI``
can also be a single file.
The position parameter is the same as in :ref:`addid
<command_addid>`.
Clients that are connected via local socket may add arbitrary
local files (URI is an absolute path). Example::