diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 0beb76b98..48fee9415 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -147,13 +147,14 @@ int CppCheckExecutor::check(int argc, const char* const argv[]) Preprocessor::missingIncludeFlag = false; CppCheck cppCheck(*this, true); - if (!parseFromArgs(&cppCheck, argc, argv)) { - return EXIT_FAILURE; - } Settings& settings = cppCheck.settings(); _settings = &settings; + if (!parseFromArgs(&cppCheck, argc, argv)) { + return EXIT_FAILURE; + } + if (settings.reportProgress) time1 = std::time(0);