summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authormillaway <millaway>2002-03-28 19:52:33 +0000
committermillaway <millaway>2002-03-28 19:52:33 +0000
commit066401e778aed0600229df617a64ed612caa7d0b (patch)
tree1b152cca1c4177e14612efe76ace184453b2979b /main.c
parentbe97d09c1c62dce2fe6367739420a09af6c00f84 (diff)
downloadflex-066401e778aed0600229df617a64ed612caa7d0b.tar.gz
Output of `flex --version` now matches GNU coding standards.
Makefile.am now uses `help2man` to generate flex.1
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/main.c b/main.c
index b679d4d..28c91b7 100644
--- a/main.c
+++ b/main.c
@@ -1115,7 +1115,7 @@ char **argv;
break;
case OPT_VERSION:
- printf( _( "%s version %s\n" ),
+ printf( _( "%s %s\n" ),
program_name, flex_version );
exit( 0 );
@@ -1673,10 +1673,12 @@ void usage()
outfilename = outfile_path;
}
- fprintf(f,_( "%s [OPTIONS...] [file...]\n"), program_name);
+ fprintf(f,_( "Usage: %s [OPTIONS] [FILE]...\n"), program_name);
fprintf(f,
_(
-"Table Compression: (default is -Cem)\n"
+"Generates programs that perform pattern-matching on text.\n"
+"\n"
+"Table Compression:\n"
" -Ca, --align trade off larger tables for better memory alignment\n"
" -Ce, --ecs construct equivalence classes\n"
" -Cf do not compress tables; use -f representation\n"
@@ -1685,7 +1687,8 @@ _(
" -Cr, --read use read() instead of stdio for scanner input\n"
" -f, --full generate fast, large scanner. Same as -Cfr\n"
" -F, --fast use alternate table representation. Same as -CFr\n"
-
+" -Cem default compression (same as --ecs --meta-ecs)\n"
+
"\n"
"Debugging:\n"
" -d, --debug enable debug mode in scanner\n"