cleanup old ifdefs in cmdlineparser
This commit is contained in:
parent
f5b26222ff
commit
f611c9aec7
|
@ -170,14 +170,12 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
|||
else if (strcmp(argv[i], "--xml") == 0)
|
||||
_settings->_xml = true;
|
||||
|
||||
#ifndef NDEBUG
|
||||
// Experimental: Write results in xml2 format
|
||||
// Write results in xml2 format
|
||||
else if (strcmp(argv[i], "--xml-version=2") == 0)
|
||||
{
|
||||
_settings->_xml = true;
|
||||
_settings->_xml_version = 2;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Only print something when there are errors
|
||||
else if (strcmp(argv[i], "-q") == 0 || strcmp(argv[i], "--quiet") == 0)
|
||||
|
@ -409,8 +407,6 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
|||
_settings->_showtime = SHOWTIME_NONE;
|
||||
}
|
||||
|
||||
// Rules are a debug feature
|
||||
#ifndef NDEBUG
|
||||
// Rule given at command line
|
||||
else if (strncmp(argv[i], "--rule=", 7) == 0)
|
||||
{
|
||||
|
@ -457,7 +453,6 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Print help
|
||||
else if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0)
|
||||
|
|
Loading…
Reference in New Issue