aboutsummaryrefslogtreecommitdiff
path: root/games/fortune
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-02-09 18:22:15 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-02-09 18:22:15 +0000
commit6324f7db723b0d235c28fc336a97959deb28462e (patch)
tree2ec3ba10e51d9356f0e89699723b539e658a9a30 /games/fortune
parent6b806d21d144c25f4fad714e1c0cf780f5e27d7e (diff)
downloadsrc-6324f7db723b0d235c28fc336a97959deb28462e.tar.gz
src-6324f7db723b0d235c28fc336a97959deb28462e.zip
Sync program's usage() with manpage's SYNOPSIS.
Notes
Notes: svn path=/head/; revision=141581
Diffstat (limited to 'games/fortune')
-rw-r--r--games/fortune/fortune/fortune.62
-rw-r--r--games/fortune/fortune/fortune.c6
-rw-r--r--games/fortune/strfile/strfile.82
-rw-r--r--games/fortune/strfile/strfile.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/games/fortune/fortune/fortune.6 b/games/fortune/fortune/fortune.6
index 727f8fafa463..fbc86fb109ed 100644
--- a/games/fortune/fortune/fortune.6
+++ b/games/fortune/fortune/fortune.6
@@ -47,7 +47,7 @@
.Op Fl m Ar pattern
.Oo
.Op Ar \&N%
-.Ar file/dir/all
+.Ar file Ns / Ns Ar directory Ns / Ns Cm all
.Oc
.Sh DESCRIPTION
When
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 63cfd3e7951d..7d999aae41d9 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -1364,10 +1364,8 @@ usage()
#ifdef DEBUG
(void) fprintf(stderr, "D");
#endif /* DEBUG */
- (void) fprintf(stderr, "f");
- (void) fprintf(stderr, "i");
- (void) fprintf(stderr, "losw]");
+ (void) fprintf(stderr, "efilosw]");
(void) fprintf(stderr, " [-m pattern]");
- (void) fprintf(stderr, "[[#%%] file/directory/all]\n");
+ (void) fprintf(stderr, " [[N%%] file/directory/all]\n");
exit(1);
}
diff --git a/games/fortune/strfile/strfile.8 b/games/fortune/strfile/strfile.8
index de4387c64e94..e452aa977804 100644
--- a/games/fortune/strfile/strfile.8
+++ b/games/fortune/strfile/strfile.8
@@ -45,7 +45,7 @@
.Nd "create a random access file for storing strings"
.Sh SYNOPSIS
.Nm
-.Op Fl iorsx
+.Op Fl Ciorsx
.Op Fl c Ar char
.Ar source_file
.Op Ar output_file
diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c
index bd8ee44f53de..d79d93df0191 100644
--- a/games/fortune/strfile/strfile.c
+++ b/games/fortune/strfile/strfile.c
@@ -319,7 +319,7 @@ char **argv;
void usage()
{
(void) fprintf(stderr,
- "strfile [-Ciorsx] [-c char] sourcefile [datafile]\n");
+ "strfile [-Ciorsx] [-c char] source_file [output_file]\n");
exit(1);
}