1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

use -q instead of -f

This commit is contained in:
Alexandre Ratchov 2014-02-05 18:07:49 +01:00
parent fb1d34f919
commit 955ec5b4b3
2 changed files with 8 additions and 6 deletions

View File

@ -24,7 +24,7 @@
.Nm xvolkeys .Nm xvolkeys
.Op Fl D .Op Fl D
.Op Fl v .Op Fl v
.Op Fl f Ar port .Op Fl q Ar port
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
@ -43,8 +43,10 @@ The options are as follows:
.Bl -tag -width Ds .Bl -tag -width Ds
.It Fl D .It Fl D
Daemonize. Daemonize.
.It Fl f Ar dev .It Fl q Ar port
MIDI port to use, default is Control MIDI port to use to connect to
.Xr sndiod 1
daemon, the default is
.Pa snd/0 .Pa snd/0
.It Fl v .It Fl v
Increase log verbosity. Increase log verbosity.

View File

@ -189,7 +189,7 @@ ungrab_keys(void)
void void
usage(void) usage(void)
{ {
fprintf(stderr, "usage: xvolkeys [-Dv] [-f device]\n"); fprintf(stderr, "usage: xvolkeys [-Dv] [-q port]\n");
exit(1); exit(1);
} }
@ -211,7 +211,7 @@ main(int argc, char **argv)
devname = "snd/0"; devname = "snd/0";
verbose = 0; verbose = 0;
background = 0; background = 0;
while ((c = getopt(argc, argv, "Df:v")) != -1) { while ((c = getopt(argc, argv, "Dq:v")) != -1) {
switch (c) { switch (c) {
case 'D': case 'D':
background = 1; background = 1;
@ -219,7 +219,7 @@ main(int argc, char **argv)
case 'v': case 'v':
verbose++; verbose++;
break; break;
case 'f': case 'q':
devname = optarg; devname = optarg;
break; break;
default: default: