diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index a517fda77..5dff8d26f 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -121,8 +121,6 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) mSettings->exename = argv[0]; - mSettings->loadCppcheckCfg(Path::getPathFromFilename(argv[0]) + "cppcheck.cfg"); - for (int i = 1; i < argc; i++) { if (argv[i][0] == '-') { // User define @@ -919,6 +917,8 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) } } + mSettings->loadCppcheckCfg(Path::getPathFromFilename(argv[0]) + "cppcheck.cfg"); + // Default template format.. if (mSettings->templateFormat.empty()) { mSettings->templateFormat = "{bold}{file}:{line}:{column}: {red}{inconclusive:{magenta}}{severity}:{inconclusive: inconclusive:}{default} {message} [{id}]{reset}\\n{code}";