Don't complain "could not find or open any of the paths given." if no arguments were passed to cppcheck (and help was shown)

This commit is contained in:
PKEuS 2014-05-18 13:45:26 +02:00
parent 780719665f
commit 65916e027c
1 changed files with 3 additions and 1 deletions

View File

@ -770,8 +770,10 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
PrintMessage("cppcheck: inconclusive messages will not be shown, because the old xml format is not compatible. It's recommended to use the new xml format (use --xml-version=2).");
}
if (argc <= 1)
if (argc <= 1) {
_showHelp = true;
_exitAfterPrint = true;
}
if (_showHelp) {
PrintHelp();