diff options
author | dcs <dcs@FreeBSD.org> | 1999-10-27 18:34:05 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 1999-10-27 18:34:05 +0000 |
commit | d6219fa05f98fee354337db500497638879de908 (patch) | |
tree | b6ea076403fb48a9236c5537ebc82b84413d0b2a /games | |
parent | 3a2839fec91869c508c910499095e99a8f6dac46 (diff) | |
download | FreeBSD-src-d6219fa05f98fee354337db500497638879de908.zip FreeBSD-src-d6219fa05f98fee354337db500497638879de908.tar.gz |
Realize the changes to usage() and the man page were missing from
the previous commit, and document the -C (comments) flag.
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/strfile/strfile.8 | 9 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/games/fortune/strfile/strfile.8 b/games/fortune/strfile/strfile.8 index e5598e6..0d992b8 100644 --- a/games/fortune/strfile/strfile.8 +++ b/games/fortune/strfile/strfile.8 @@ -65,6 +65,15 @@ The output file, if not specified on the command line, is named .Pp The options are as follows: .Bl -tag -width "-c char" +.It Fl C +Flag the file as containing comments. This option cases the +.Dv STR_COMMENTS +bit in the header +.Ar str_flags +field to be set. +Comments are designated by two delimiter characters at the +beginning of the line, though strfile does not give any special +treatment to comment lines. .It Fl c Ar char Change the delimiting character from the percent sign to .Ar char . diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index 711f8d5..4d5ae66 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -317,7 +317,7 @@ char **argv; void usage() { (void) fprintf(stderr, - "strfile [-iorsx] [-c char] sourcefile [datafile]\n"); + "strfile [-Ciorsx] [-c char] sourcefile [datafile]\n"); exit(1); } |