From 6324f7db723b0d235c28fc336a97959deb28462e Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 9 Feb 2005 18:22:15 +0000 Subject: [PATCH] Sync program's usage() with manpage's SYNOPSIS. --- games/fortune/fortune/fortune.6 | 2 +- games/fortune/fortune/fortune.c | 6 ++---- games/fortune/strfile/strfile.8 | 2 +- games/fortune/strfile/strfile.c | 2 +- games/number/number.c | 2 +- games/random/random.c | 2 +- 6 files changed, 7 insertions(+), 9 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); } diff --git a/games/number/number.c b/games/number/number.c index 715de8ac4430..243fc8ddc866 100644 --- a/games/number/number.c +++ b/games/number/number.c @@ -293,6 +293,6 @@ pfract(len) void usage() { - (void)fprintf(stderr, "usage: number [# ...]\n"); + (void)fprintf(stderr, "usage: number [-l] [# ...]\n"); exit(1); } diff --git a/games/random/random.c b/games/random/random.c index e06c4bc68fd5..3dae75bd8a13 100644 --- a/games/random/random.c +++ b/games/random/random.c @@ -188,6 +188,6 @@ static void usage(void) { - fprintf(stderr, "usage: random [-elruUw] [-f filename] [denominator]\n"); + fprintf(stderr, "usage: random [-elrUuw] [-f filename] [denominator]\n"); exit(1); }