Increase number of cores allowed by the cli to 10000 and add comment about the limit (it is there just to catch typos)

This commit is contained in:
Reijo Tomperi 2010-11-20 22:33:46 +02:00
parent 0fe4249cfc
commit 1394d0245a
1 changed files with 4 additions and 2 deletions

View File

@ -291,9 +291,11 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
return false; return false;
} }
if (_settings->_jobs > 1000) if (_settings->_jobs > 10000)
{ {
PrintMessage("cppcheck: argument for '-j' is allowed to be 1000 at max"); // This limit is here just to catch typos. If someone has
// need for more jobs, this value should be increased.
PrintMessage("cppcheck: argument for '-j' is allowed to be 10000 at max");
return false; return false;
} }
} }