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

View File

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