Closed Schlaefer closed 8 months ago
Hi.
I don't have mpc
on my current machine to test it right now. Usually in CLI tools needing this kind of disambiguation between flags and other arguments, you can use --
. So it may works:
mpc --host=<host> save -- "- test"
Thanks @Delapouite, that's exactly how it works - mpc follows the GNU convention here. But this fact isn't documented in the manpage, so this is a bug, though only a documentation bug.
Thanks, that works (same with rm
for removing). - Leave the ticket open as "documentation reminder" or close?
Leave open.
Steps to reproduce
Try to save the current queue to a new playlist providing a playlist name starting with -
mpc --host=<host> save "- test"
Observed result
No playlist is created
Expected result
The mpd instance should create a new playlist with the name - test
Environment
mpc version 0.34 mpd version 0.23.12