]> granicus.if.org Git - re2c/commitdiff
- Drop unused variable.
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 19 Apr 2004 21:27:15 +0000 (21:27 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 19 Apr 2004 21:27:15 +0000 (21:27 +0000)
- Add some info about the switches.

main.cc

diff --git a/main.cc b/main.cc
index 02c2d3b3619608f40cb1dcdcfbe42d596bb61070..e9f7f0fa285d3d6fa642a6f6b4565ca62e7fe83c 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -37,7 +37,6 @@ int main(int argc, char *argv[])
 {
        int c;
     fileName = NULL;
-    outputFileName = NULL;
 
     if (argc == 1) {
                goto usage;
@@ -57,9 +56,6 @@ int main(int argc, char *argv[])
                        break;
            case 'h':
                        goto usage;
-               case 'f':
-                       outputFileName = opt_arg;
-                       break;
            case 's':
                        sFlag = true;
                        break;
@@ -97,10 +93,25 @@ int main(int argc, char *argv[])
     return 0;
 
 usage:
-    cerr << "usage: re2c [-esbvh] file\n";
+    cerr << "usage: re2c [-esbvh] file\n"
+                       "\n"
+                       "-? -h   --help          Display this info.\n"
+                       "\n"
+                       "-b      --bit-vectors   Implies -s. Use bit vectors as well in the attempt to\n"
+                       "                        coax better code out of the compiler. Most useful for\n"
+                       "                        specifications with more than a few keywords (e.g. for\n"
+                       "                        most programming languages).\n"
+                       "\n"
+                       "-e      --ecb           Cross-compile from an ASCII platform to\n"
+                       "                        an EBCDIC one.\n"
+                       "\n"
+                       "-s      --nested-ifs    Generate nested ifs for some switches. Many compilers\n"
+                       "                        need this assist to generate better code.\n"
+                       "\n"
+                       "-v      --version       Show version information.\n";
     return 2;
 
 version:
-    cerr << "re2c " << PACKAGE_VERSION << "\n";
+       cerr << "re2c " << PACKAGE_VERSION << "\n";
     return 2;
 }