This commit is contained in:
Daniel Marjamäki 2016-08-05 19:46:24 +02:00
parent c985c39018
commit 3f3fc3d232
1 changed files with 4 additions and 1 deletions

View File

@ -474,12 +474,15 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
_ignoredPaths.push_back(path);
}
}
// --library
else if (std::strncmp(argv[i], "--library=", 10) == 0) {
if (!CppCheckExecutor::tryLoadLibrary(_settings->library, argv[0], argv[i]+10))
return false;
}
// experimental --project
else if (std::strncmp(argv[i], "--project=", 10) == 0) {
_settings.project(argv[i]+10);
}
// Report progress
else if (std::strcmp(argv[i], "--report-progress") == 0) {