Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player arg consistency #26

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mpris-ctl.1.scd
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ mpris-ctl [OPTIONS...] [COMMAND] [format string]

# OPTIONS

*--player* active | inactive | <name,...>
*--player* active | inactive | <name ...>

Specifies which player(s) the command should be addressed to. The valid values are:

*active*
all players that are currently in _Playing_ state.
*inactive*
all players that are currently in a _Stopped_ or _Paused_ state.
<name...>
<name ...>
specific player names, separated by spaces.

To consider all players both active and inactive you must pass the the option
Expand Down
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
#define PLAYER_INACTIVE "inactive"

#define HELP_MESSAGE "MPRIS control, version %s\n" \
"Usage:\n %s [" ARG_PLAYER " <name,...> | " PLAYER_ACTIVE " | " PLAYER_INACTIVE "] COMMAND - Control running MPRIS player\n" \
"Usage:\n %s [" ARG_PLAYER " " PLAYER_ACTIVE " | " PLAYER_INACTIVE " | <name ...>] COMMAND - Control running MPRIS player\n" \
"\n" \
"Options:\n" \
ARG_PLAYER " <name,...>\tExecute command only for player(s) named <name,...>\n" \
" "PLAYER_ACTIVE"\t\tExecute command only for the active player(s) (default)\n" \
ARG_PLAYER" "PLAYER_ACTIVE"\t\tExecute command only for the active player(s) (default)\n" \
" "PLAYER_INACTIVE"\tExecute command only for the inactive player(s)\n" \
" <name ...>\tExecute command only for player(s) named <name ...>\n" \
"\n" \
"Commands:\n"\
"\t" CMD_HELP "\t\tThis help message\n" \
Expand Down