From caa9707e331caab66f69ea78d82dd18510f1ea01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 15 Nov 2009 15:36:57 +0100 Subject: [PATCH] help screen updates for the --enable command (#883) --- lib/cppcheck.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index e59385d0f..20592a404 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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"