summaryrefslogtreecommitdiff
path: root/usr.bin/cdio/cdio.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-12-24 11:34:11 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-12-24 11:34:11 +0000
commitf9dbcefae295d6dcc3f0687612e50bd89a34b20d (patch)
treea22e46909b0a959b2bddd6bd5045a1dd220aca6f /usr.bin/cdio/cdio.c
parenta19fd1f3ec604d4b014ee0d7adf7999a16737573 (diff)
Get rid of ugly usage() output. People can read the man page to get a command
list. Sync the usage() with the man page.
Diffstat (limited to 'usr.bin/cdio/cdio.c')
-rw-r--r--usr.bin/cdio/cdio.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/usr.bin/cdio/cdio.c b/usr.bin/cdio/cdio.c
index daa1cb01ad6..77ebc207280 100644
--- a/usr.bin/cdio/cdio.c
+++ b/usr.bin/cdio/cdio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdio.c,v 1.13 1999/12/15 05:33:56 deraadt Exp $ */
+/* $OpenBSD: cdio.c,v 1.14 2000/12/24 11:34:10 aaron Exp $ */
/*
* Compact Disc Control Utility by Serge V. Vakulenko <vak@cronyx.ru>.
* Based on the non-X based CD player by Jean-Marc Zucconi and
@@ -155,15 +155,8 @@ void help ()
void usage ()
{
- printf ("Usage:\n\t%s [ -vs ] [ -f disc ] [ command args... ]\n", __progname);
- printf ("Options:\n");
- printf ("\t-v - verbose mode\n");
- printf ("\t-s - silent mode\n");
- printf ("\t-f disc - a block device name such as /dev/cd0c\n");
- printf ("\tDISC - shell variable with device name\n");
- printf ("\tCDROM - shell variable checked if DISC isn't sent\n");
- printf ("Commands:\n");
- help ();
+ (void)fprintf(stderr,
+ "usage: %s [-sv] [-f device] [command args ...]\n", __progname);
exit (1);
}