From: nuno-lopes Date: Sun, 24 Feb 2008 17:31:15 +0000 (+0000) Subject: disallow -d and -D flags at the same time X-Git-Tag: 0.13.6~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=523ccebf7f8f7009279daad87cce185972535e07;p=re2c disallow -d and -D flags at the same time --- diff --git a/re2c/main.cc b/re2c/main.cc index 0833f4b1..2f78081f 100644 --- a/re2c/main.cc +++ b/re2c/main.cc @@ -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;