aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-13 22:22:56 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-13 22:23:31 -0400
commit62556214991fcbc5291f104c89eadac32151439a (patch)
treedb0c367c8f730045c4724c38061b46e918ec2ed9
parent9c8cee7a55619f842a13028a7ce58e60dcc9ea5a (diff)
downloadmirror-ponymix-62556214991fcbc5291f104c89eadac32151439a.tar.gz
mirror-ponymix-62556214991fcbc5291f104c89eadac32151439a.tar.bz2
mirror-ponymix-62556214991fcbc5291f104c89eadac32151439a.zip
add missing -d option
alphabetize the optstring and longopt array while we're at it.
-rw-r--r--pulsemix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pulsemix.c b/pulsemix.c
index e2fdac3..7f1af75 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -731,16 +731,16 @@ int main(int argc, char *argv[])
int (*fn_get_by_name)(struct pulseaudio_t *, const char *, enum mode) = get_sink_by_name;
static const struct option opts[] = {
- { "help", no_argument, 0, 'h' },
- { "device", no_argument, 0, 'd' },
{ "app", no_argument, 0, 'a' },
+ { "device", no_argument, 0, 'd' },
+ { "help", no_argument, 0, 'h' },
{ "sink", optional_argument, 0, 'o' },
{ "source", optional_argument, 0, 'i' },
{ 0, 0, 0, 0 },
};
for (;;) {
- int opt = getopt_long(argc, argv, "hao::i::", opts, NULL);
+ int opt = getopt_long(argc, argv, "adhi::o::", opts, NULL);
if (opt == -1)
break;