diff options
-rw-r--r-- | parser-mpcmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/parser-mpcmd.c b/parser-mpcmd.c index 41cad67467..d87e820e0f 100644 --- a/parser-mpcmd.c +++ b/parser-mpcmd.c @@ -70,6 +70,11 @@ static int split_opt_silent(struct parse_state *p) if (p->no_more_opts || !bstr_startswith0(p->arg, "-") || p->arg.len == 1) return 0; + if (bstrcmp0(p->arg, "--") == 0) { + p->no_more_opts = true; + return split_opt_silent(p); + } + bool old_syntax = !bstr_startswith0(p->arg, "--"); if (old_syntax) { p->arg = bstr_cut(p->arg, 1); |