diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 6235ebccca7..f83f12ad177 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1727,9 +1727,9 @@ void CmdLineParser::printHelp() const " be considered for evaluation.\n" " --config-excludes-file=\n" " A file that contains a list of config-excludes\n" - " --disable= Disable individual checks.\n" - " Please refer to the documentation of --enable=\n" - " for further details.\n" + " --disable= Disable checks with the given severity.\n" + " Please refer to the documentation of --enable for\n" + " further details.\n" " --dump Dump xml data for each translation unit. The dump\n" " files have the extension .dump and contain ast,\n" " tokenlist, symboldatabase, valueflow.\n" @@ -1739,31 +1739,24 @@ void CmdLineParser::printHelp() const " Example: '-DDEBUG=1 -D__cplusplus'.\n" " -E Print preprocessor output on stdout and don't do any\n" " further processing.\n" - " --enable= Enable additional checks. The available ids are:\n" - " * all\n" - " Enable all checks. It is recommended to only\n" - " use --enable=all when the whole program is\n" - " scanned, because this enables unusedFunction.\n" + " --enable= Enable additional checks grouped by severity. The available\n" + " severities are:\n" " * warning\n" - " Enable warning messages\n" - " * style\n" - " Enable all coding style checks. All messages\n" - " with the severities 'style', 'warning',\n" - " 'performance' and 'portability' are enabled.\n" " * performance\n" - " Enable performance messages\n" " * portability\n" - " Enable portability messages\n" " * information\n" - " Enable information messages\n" + " * style\n" + " Enable checks with severities 'style', 'warning',\n" + " 'performance' and 'portability'.\n" " * unusedFunction\n" " Check for unused functions. It is recommended\n" " to only enable this when the whole program is\n" " scanned.\n" " * missingInclude\n" - " Warn if there are missing includes.\n" - " Several ids can be given if you separate them with\n" - " commas. See also --std\n" + " Check for missing include files.\n" + " * all\n" + " Enable all checks.\n" + " Pass multiple severities as a comma-separated list.\n" " --error-exitcode= If errors are found, integer [n] is returned instead of\n" " the default '0'. '" << EXIT_FAILURE << "' is returned\n" " if arguments are not valid or if no input files are\n"