summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-11-07 19:09:34 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-11-07 19:09:34 +0000
commit024b8c0ed6cb12d629c7fbead345cba10d5f83d3 (patch)
tree804544e8cd9ffb59740bdd98c8ae78e1d84205e2 /games
parent45c689eef585e783d4d148e775ad406a86902e3d (diff)
- correct SYNOPSIS
- sort options - sync usage()
Diffstat (limited to 'games')
-rw-r--r--games/bcd/bcd.628
-rw-r--r--games/morse/morse.c6
2 files changed, 18 insertions, 16 deletions
diff --git a/games/bcd/bcd.6 b/games/bcd/bcd.6
index 677fb3dc294..dcf5bb307a0 100644
--- a/games/bcd/bcd.6
+++ b/games/bcd/bcd.6
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bcd.6,v 1.13 2003/06/03 03:01:39 millert Exp $
+.\" $OpenBSD: bcd.6,v 1.14 2005/11/07 19:09:32 jmc Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -41,10 +41,12 @@
.Nm bcd
.Op Ar string ...
.Nm ppt
-.Op Fl d Op Fl b
-.Op Ar string ...
+.Oo
+.Fl d Oo Fl b Oc \*(Ba
+.Ar string ...
+.Oc
.Nm morse
-.Op Fl s | Fl d
+.Op Fl d | s
.Op Ar string ...
.Sh DESCRIPTION
The
@@ -58,8 +60,8 @@ Acceptable input are command line arguments or the standard input.
.Pp
Available options for
.Nm ppt :
-.Bl -tag -width flag
-.It Fl d
+.Bl -tag -width Ds
+.It Fl d Op Fl b
The
.Fl d
option for
@@ -77,13 +79,7 @@ is printed for undecipherable input lines.
.Pp
Available options for
.Nm morse :
-.Bl -tag -width flag
-.It Fl s
-The
-.Fl s
-option for
-.Nm morse
-produces dots and dashes rather than words.
+.Bl -tag -width Ds
.It Fl d
The
.Fl d
@@ -103,6 +99,12 @@ If the morse to be translated is given on the command line, it should be
preceded by
.Sq --
to keep it from being mistaken for options.
+.It Fl s
+The
+.Fl s
+option for
+.Nm morse
+produces dots and dashes rather than words.
.El
.Sh SEE ALSO
ISO 1681:1973
diff --git a/games/morse/morse.c b/games/morse/morse.c
index b1ec0b08682..8d6a8d2763c 100644
--- a/games/morse/morse.c
+++ b/games/morse/morse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: morse.c,v 1.12 2004/07/10 07:26:23 deraadt Exp $ */
+/* $OpenBSD: morse.c,v 1.13 2005/11/07 19:09:33 jmc Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: morse.c,v 1.12 2004/07/10 07:26:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: morse.c,v 1.13 2005/11/07 19:09:33 jmc Exp $";
#endif
#endif /* not lint */
@@ -136,7 +136,7 @@ main(int argc, char *argv[])
break;
case '?': case 'h':
default:
- fprintf(stderr, "usage: morse [-ds] [string ...]\n");
+ fprintf(stderr, "usage: morse [-d | -s] [string ...]\n");
exit(1);
}
argc -= optind;