From a3ad93a0136fc830fe646f57a1d07f1533f71f39 Mon Sep 17 00:00:00 2001 From: Leon Eifler Date: Mon, 23 Oct 2023 14:55:18 +0200 Subject: [PATCH] re-add falsely removed code --- src/soplexmain.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/soplexmain.cpp b/src/soplexmain.cpp index f71b1d8f..b4042308 100644 --- a/src/soplexmain.cpp +++ b/src/soplexmain.cpp @@ -825,7 +825,8 @@ int runSoPlex(int argc, char* argv[]) // option string must start with '-', must contain at least two characters, and exactly two characters if and // only if it is -x, -y, -q, or -c if(option[0] != '-' || option[1] == '\0' - || ((option[2] == '\0') != (option[1] == 'q' || option[1] == 'c'))) + || ((option[2] == '\0') != (option[1] == 'x' || option[1] == 'X' || option[1] == 'y' + || option[1] == 'Y' || option[1] == 'q' || option[1] == 'c'))) { printUsage(argv, optidx); returnValue = 1; @@ -1470,7 +1471,8 @@ int main(int argc, char* argv[]) // option string must start with '-', must contain at least two characters, and exactly two characters if and // only if it is -q, or -c if(option[0] != '-' || option[1] == '\0' - || ((option[2] == '\0') != (option[1] == 'q' || option[1] == 'c'))) + || ((option[2] == '\0') != (option[1] == 'x' || option[1] == 'X' || option[1] == 'y' + || option[1] == 'Y' || option[1] == 'q' || option[1] == 'c'))) { printUsage(argv, optidx); return 1;