Skip to content

Commit

Permalink
doc: document the "--" option
Browse files Browse the repository at this point in the history
Closes #104
  • Loading branch information
MaxKellermann committed Dec 21, 2023
1 parent 834502e commit 687df7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ given, the current status is printed (same as ":samp:`mpc status`").
Synopsis
--------

mpc [options] <command> [<arguments>]
mpc [options] <command> [--] [<arguments>]

After ``--``, all parameters are considered to be arguments, not
options, even if they start with a dash.


Options
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static const struct command {
static void
print_usage(FILE *outfp, const char *progname)
{
fprintf(outfp,"Usage: %s [options] <command> [<arguments>]\n"
fprintf(outfp,"Usage: %s [options] <command> [--] [<arguments>]\n"
"mpc version: "VERSION"\n",progname);
}

Expand Down

0 comments on commit 687df7a

Please sign in to comment.