From b7a2ccc30b21e505311c153558e22df4fb24a493 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Sat, 11 Aug 2012 20:05:20 -0400 Subject: organize usage message --- pulsemix.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pulsemix.c b/pulsemix.c index adf7e7e..3de2fd2 100644 --- a/pulsemix.c +++ b/pulsemix.c @@ -572,7 +572,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fputs(" -o, --sink= control a sink other than the default\n", out); fputs(" -i, --source= control a source\n", out); - fputs("\nCommands:\n", out); + fputs("\nCommon Commands:\n", out); fputs(" defaults list default devices\n", out); fputs(" list list available devices\n", out); fputs(" get-volume get volume for device\n", out); @@ -585,9 +585,13 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fputs(" unmute unmute device\n", out); fputs(" toggle toggle mute\n", out); fputs(" is-muted check if muted\n", out); - fputs(" kill kill an application's stream\n", out); + + fputs("\nDevice Commands:\n", out); fputs(" set-default NAME set default device\n", out); + fputs("\nApplication Commands:\n", out); + fputs(" kill kill an application's stream\n", out); + exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -- cgit v1.2.3