diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-09 18:22:15 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-09 18:22:15 +0000 |
commit | 6324f7db723b0d235c28fc336a97959deb28462e (patch) | |
tree | 2ec3ba10e51d9356f0e89699723b539e658a9a30 /games/fortune | |
parent | 6b806d21d144c25f4fad714e1c0cf780f5e27d7e (diff) | |
download | src-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.6 | 2 | ||||
-rw-r--r-- | games/fortune/fortune/fortune.c | 6 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.8 | 2 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.c | 2 |
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); } |