]> granicus.if.org Git - re2c/commitdiff
disallow -d and -D flags at the same time
authornuno-lopes <nuno-lopes@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 24 Feb 2008 17:31:15 +0000 (17:31 +0000)
committernuno-lopes <nuno-lopes@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 24 Feb 2008 17:31:15 +0000 (17:31 +0000)
re2c/main.cc

index 0833f4b1658afc5a25ab7ec36cd11090aa22e48a..2f78081f856b6c699f0d8f866c16ff0576d9abb6 100644 (file)
@@ -350,6 +350,12 @@ int main(int argc, char *argv[])
                return 2;
        }
 
+       if (dFlag && DFlag)
+       {
+               std::cerr << "re2c: error: Cannot combine -d with -D switch\n";
+               return 2;
+       }
+
        if (uFlag)
        {
                wFlag = true;