help : minor updates to help text that cppcheck shows when no parameters are given

This commit is contained in:
Daniel Marjamäki 2008-12-30 18:48:36 +00:00
parent a0d27c9109
commit 6167c22eb9
1 changed files with 4 additions and 2 deletions

View File

@ -112,19 +112,21 @@ std::string CppCheck::parseFromArgs( int argc, const char* const argv[] )
"C/C++ code checking\n" "C/C++ code checking\n"
"\n" "\n"
"Syntax:\n" "Syntax:\n"
" cppcheck [--all] [--quiet] [--style] [--verbose] [file or path1] [file or path]\n" " cppcheck [--all] [--force] [--quiet] [--style] [--verbose] [file or path1] [file or path]\n"
"\n" "\n"
"If path is given instead of filename, *.cpp, *.cxx, *.cc and *.c files are \n" "If path is given instead of filename, *.cpp, *.cxx, *.cc and *.c files are \n"
"checked recursively from given directory.\n\n" "checked recursively from given directory.\n\n"
"Options:\n" "Options:\n"
" -a, --all Make the checking more sensitive. More bugs are detected,\n" " -a, --all Make the checking more sensitive. More bugs are detected,\n"
" but there are also more false positives\n" " but there are also more false positives\n"
" -f, --force Force checking on files that have \"too many\" configurations\n"
" -q, --quiet Only print error messages\n" " -q, --quiet Only print error messages\n"
" -s, --style Check coding style\n" " -s, --style Check coding style\n"
" -v, --verbose More detailed error reports\n" " -v, --verbose More detailed error reports\n"
" -f, --force Force checking on files that have \"too many\" configurations\n"
"\n" "\n"
"Example usage:\n" "Example usage:\n"
" # Recursively check the current folder. Print the progress on the screen and write errors in a file:\n"
" cppcheck . 2> err.txt\n"
" # Recursively check ../myproject/ and print only most fatal errors:\n" " # Recursively check ../myproject/ and print only most fatal errors:\n"
" cppcheck --quiet ../myproject/\n" " cppcheck --quiet ../myproject/\n"
" # Check only files one.cpp and two.cpp and give all information there is:\n" " # Check only files one.cpp and two.cpp and give all information there is:\n"