From d6219fa05f98fee354337db500497638879de908 Mon Sep 17 00:00:00 2001 From: dcs Date: Wed, 27 Oct 1999 18:34:05 +0000 Subject: Realize the changes to usage() and the man page were missing from the previous commit, and document the -C (comments) flag. --- games/fortune/strfile/strfile.8 | 9 +++++++++ games/fortune/strfile/strfile.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'games/fortune/strfile') 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); } -- cgit v1.1