]> granicus.if.org Git - re2c/commitdiff
- Fix WS
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 23 Feb 2005 21:16:24 +0000 (21:16 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 23 Feb 2005 21:16:24 +0000 (21:16 +0000)
- Print version to cout instead cerr

main.cc

diff --git a/main.cc b/main.cc
index 46932ed7d76a2752e5bf8a5b348c7d855f1ad160..a058d0674183aa1e1435411bfc37ea407cd7dc6c 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -29,9 +29,7 @@ static int opt_ind = 1;
 
 static const mbo_opt_struct OPTIONS[] =
     {
-        {'?', 0, "help"
-        },
-
+        {'?', 0, "help"},
         {'b', 0, "bit-vectors"},
         {'e', 0, "ecb"},
         {'h', 0, "help"},
@@ -105,7 +103,7 @@ int main(int argc, char *argv[])
                        break;
 
                        case 'v':
-                       cerr << "re2c " << PACKAGE_VERSION << "\n";
+                       cout << "re2c " << PACKAGE_VERSION << "\n";
                        return 2;
                        
                        case 'V': {
@@ -113,7 +111,7 @@ int main(int argc, char *argv[])
                                char version[16];
                                sscanf(PACKAGE_VERSION, "%d.%d.%d", &v1, &v2, &v3);
                                sprintf(version, "%02d%02d%02d", v1, v2, v3);
-                               cerr << version << "\n";
+                               cout << version << "\n";
                                return 2;
                        }