help screen updates for the --enable command (#883)
This commit is contained in:
parent
2b1b7f78f5
commit
caa9707e33
|
@ -349,10 +349,10 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[])
|
|||
oss << "Cppcheck - A tool for static C/C++ code analysis\n"
|
||||
"\n"
|
||||
"Syntax:\n"
|
||||
" cppcheck [--all] [--append=file] [--auto-dealloc file.lst]\n"
|
||||
" cppcheck [--all] [--append=file] [--auto-dealloc file.lst] [--enable]\n"
|
||||
" [--error-exitcode=[n]] [--force] [--help] [-Idir] [-j [jobs]]\n"
|
||||
" [--quiet] [--style] [--suppressions file.txt] [--unused-functions]\n"
|
||||
" [--verbose] [--version] [--xml] [file or path1] [file or path] ...\n"
|
||||
" [--quiet] [--style] [--suppressions file.txt] [--verbose]\n"
|
||||
" [--version] [--xml] [file or path1] [file or path] ...\n"
|
||||
"\n"
|
||||
"If path is given instead of filename, *.cpp, *.cxx, *.cc, *.c++ and *.c files\n"
|
||||
"are checked recursively from given directory.\n\n"
|
||||
|
@ -367,6 +367,12 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[])
|
|||
" classname / line - in a .lst file.\n"
|
||||
" This option can be used several times, allowing you to\n"
|
||||
" specify several .lst files.\n"
|
||||
" --enable Enable all extra checks\n"
|
||||
" --enable=id Enable specific checks. The available ids are:\n"
|
||||
" * exceptNew - exception safety when using new\n"
|
||||
" * exceptRealloc - exception safety when reallocating\n"
|
||||
" * unusedFunctions - check for unused functions\n"
|
||||
" Several ids can be given if you separate them with commas\n"
|
||||
" --error-exitcode=[n] If errors are found, integer [n] is returned instead\n"
|
||||
" of default 0. EXIT_FAILURE is returned\n"
|
||||
" if arguments are not valid or if no input files are\n"
|
||||
|
@ -388,7 +394,6 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[])
|
|||
" '{file}:{line},{severity},{id},{message}' or\n"
|
||||
" '{file}({line}):({severity}) {message}'\n"
|
||||
" Pre-defined templates: gcc, vs\n"
|
||||
" --unused-functions Check if there are unused functions\n"
|
||||
" -v, --verbose More detailed error reports\n"
|
||||
" --version Print out version number\n"
|
||||
" --xml Write results in xml to error stream.\n"
|
||||
|
|
Loading…
Reference in New Issue