From 523ccebf7f8f7009279daad87cce185972535e07 Mon Sep 17 00:00:00 2001 From: nuno-lopes Date: Sun, 24 Feb 2008 17:31:15 +0000 Subject: [PATCH] disallow -d and -D flags at the same time --- re2c/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.40.0