Skip to content

Commit 059df11

Browse files
committed
added CLI option --exitcode-suppress
1 parent d4d3c22 commit 059df11

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,15 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
756756
}
757757
}
758758

759+
else if (std::strncmp(argv[i], "--exitcode-suppress=", 20) == 0) {
760+
const std::string suppression = argv[i]+20;
761+
const std::string errmsg(mSuppressions.nofail.addSuppressionLine(suppression));
762+
if (!errmsg.empty()) {
763+
mLogger.printError(errmsg);
764+
return Result::Fail;
765+
}
766+
}
767+
759768
// Filter errors
760769
else if (std::strncmp(argv[i], "--exitcode-suppressions=", 24) == 0) {
761770
// exitcode-suppressions=filename.txt

0 commit comments

Comments
 (0)