Skip to content

Commit

Permalink
allow FOX switches in debug version ref #15970
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <[email protected]>
  • Loading branch information
m-kro committed Jan 6, 2025
1 parent 319fecb commit bd3f9e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/options/OptionsParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/// @author Daniel Krajzewicz
/// @author Jakob Erdmann
/// @author Michael Behrisch
/// @author Mirko Barthauer
/// @date Mon, 17 Dec 2001
///
// Parses the command line arguments
Expand Down Expand Up @@ -66,6 +67,14 @@ OptionsParser::check(const std::string& arg1, const std::string* const arg2, boo
return 1;
}

#ifdef _DEBUG
// allow to set FOX FXApp switches tracelevel (messages) and maxcolors
if ((arg1 == "-tracelevel" || arg1 == "-maxcolors") && arg2 != nullptr) {
ok = true;
return 2;
}
#endif

OptionsCont& oc = OptionsCont::getOptions();
const bool append = arg1[0] == '+';
// process not abbreviated switches
Expand Down

0 comments on commit bd3f9e7

Please sign in to comment.