aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-10 23:09:37 -0400
committerDave Reisner <dreisner@archlinux.org>2012-05-10 23:09:37 -0400
commit3486e59cdaaeb14df58adc97917419da110e1cb5 (patch)
treebf888f3068e9a03522df02e5f9252de53624502b
parenta6d63abebd3c2216aa182041af91d2ddab72b82d (diff)
downloadmirror-ponymix-3486e59cdaaeb14df58adc97917419da110e1cb5.tar.gz
mirror-ponymix-3486e59cdaaeb14df58adc97917419da110e1cb5.tar.bz2
mirror-ponymix-3486e59cdaaeb14df58adc97917419da110e1cb5.zip
clarify usage
-rw-r--r--pulsemix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pulsemix.c b/pulsemix.c
index 3d2f890..b4927fb 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -313,7 +313,7 @@ static int pulse_connect(struct pulseaudio_t *pulse)
void usage(FILE *out)
{
- fprintf(out, "usage: %s <command> [options]\n", program_invocation_short_name);
+ fprintf(out, "usage: %s [options] <command>...\n", program_invocation_short_name);
fputs("\nOptions:\n", out);
fputs(" -h, --help, display this help and exit\n", out);
fputs(" -s, --sink <name> control a sink other than the default\n", out);
@@ -321,13 +321,13 @@ void usage(FILE *out)
fputs("\nCommands:\n", out);
fputs(" list list available sinks\n", out);
fputs(" get-volume get volume for sink\n", out);
- fputs(" set-volume set volume for sink\n", out);
- fputs(" increase increase volume\n", out);
- fputs(" decrease decrease volume\n", out);
+ fputs(" set-volume VALUE set volume for sink\n", out);
+ fputs(" increase VALUE increase volume\n", out);
+ fputs(" decrease VALUE decrease volume\n", out);
fputs(" mute mute active sink\n", out);
fputs(" unmute unmute active sink\n", out);
fputs(" toggle toggle mute\n", out);
- fputs(" set-sink set default sink\n", out);
+ fputs(" set-sink SINKNAME set default sink\n", out);
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}