fixed --check-library not showing anything on its own (#3035)

This commit is contained in:
Oliver Stöneberg 2021-01-12 20:53:05 +01:00 committed by GitHub
parent 0de0a954d2
commit 7c5015d54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -228,8 +228,11 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
mSettings->checkConfiguration = true;
// Check library definitions
else if (std::strcmp(argv[i], "--check-library") == 0)
else if (std::strcmp(argv[i], "--check-library") == 0) {
mSettings->checkLibrary = true;
// need to add "information" or no messages will be shown at all
mSettings->addEnabled("information");
}
else if (std::strncmp(argv[i], "--clang", 7) == 0) {
mSettings->clang = true;