diff options
author | 2005-03-11 22:54:06 +0000 | |
---|---|---|
committer | 2005-03-11 22:54:06 +0000 | |
commit | 7182e099e22139580c335b424669ca8254ddb28f (patch) | |
tree | 3052a640550b51a211eb468a272cfa2b49adc0af | |
parent | PR 4135: detect illegal frame sizes; fix file transfer when using (diff) | |
download | wireguard-openbsd-7182e099e22139580c335b424669ca8254ddb28f.tar.xz wireguard-openbsd-7182e099e22139580c335b424669ca8254ddb28f.zip |
- synopsis according to style(9)
- add missing -q option
- sync usage()
- minor tweaks while here
-rw-r--r-- | usr.bin/midiplay/midiplay.1 | 17 | ||||
-rw-r--r-- | usr.bin/midiplay/midiplay.c | 6 |
2 files changed, 10 insertions, 13 deletions
diff --git a/usr.bin/midiplay/midiplay.1 b/usr.bin/midiplay/midiplay.1 index 5f47634fb7f..f52d078e203 100644 --- a/usr.bin/midiplay/midiplay.1 +++ b/usr.bin/midiplay/midiplay.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: midiplay.1,v 1.8 2001/08/17 11:13:58 mpech Exp $ +.\" $OpenBSD: midiplay.1,v 1.9 2005/03/11 22:54:06 jmc Exp $ .\" $NetBSD: midiplay.1,v 1.3 1998/08/13 18:26:36 augustss Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -42,23 +42,20 @@ .Nd play MIDI files .Sh SYNOPSIS .Nm midiplay +.Op Fl lmqvx .Op Fl d Ar devno .Op Fl f Ar file -.Op Fl l -.Op Fl m .Op Fl t Ar tempo -.Op Fl v -.Op Fl x .Op Ar file ... .Sh DESCRIPTION The .Nm command plays MIDI files using the sequencer device. -If no file name is given it will play from standard input, otherwise -it will play the named files. +If no file name is given it will play from standard input; +otherwise it will play the named files. .Pp The options are as follows: -.Bl -tag -width Ds +.Bl -tag -width "-d devnoXX" .It Fl d Ar devno Specifies the number of the MIDI device used for output (as listed by the @@ -70,7 +67,7 @@ Specifies the name of the sequencer device. .It Fl l List the possible devices without playing anything. .It Fl m -Show MIDI file meta events (copyright, lyrics, etc). +Show MIDI file meta events (copyright, lyrics, etc.). .It Fl q Do not play the MIDI file, just parse it. .It Fl t Ar tempo @@ -78,7 +75,7 @@ Specifies the tempo. Default is 100. .It Fl v Be verbose. -If the flag is repeated the verbosity increases. +If the flag is repeated, the verbosity increases. .It Fl x Play a small sample sound. .El diff --git a/usr.bin/midiplay/midiplay.c b/usr.bin/midiplay/midiplay.c index be0c81de98e..4f6d456bea6 100644 --- a/usr.bin/midiplay/midiplay.c +++ b/usr.bin/midiplay/midiplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midiplay.c,v 1.5 2004/05/14 04:27:26 tedu Exp $ */ +/* $OpenBSD: midiplay.c,v 1.6 2005/03/11 22:54:06 jmc Exp $ */ /* $NetBSD: midiplay.c,v 1.8 1998/11/25 22:17:07 augustss Exp $ */ /* @@ -132,8 +132,8 @@ u_char sample[] = { void usage(void) { - printf("Usage: %s [-d unit] [-f file] [-l] [-m] [-q] [-t tempo]" - "[-v] [-x] [file ...]\n", __progname); + printf("Usage: %s [-lmqvx] [-d devno] [-f file] [-t tempo] " + "[file ...]\n", __progname); exit(1); } |