cmdlineparser: Update list of file extensions, expand EXIT_FAILURE, don't list --rule* if built without support for rules. Ticket: #2761

This commit is contained in:
Ville Skyttä 2011-05-01 11:44:47 +02:00 committed by Daniel Marjamäki
parent bb3c135d81
commit 5144b0e657
1 changed files with 5 additions and 3 deletions

View File

@ -636,8 +636,8 @@ void CmdLineParser::PrintHelp()
"Syntax:\n"
" cppcheck [OPTIONS] [files or paths]\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"
"If path is given instead of filename, *.cpp, *.cxx, *.cc, *.c++, *.c, *.tpp,\n"
"and *.txx are checked recursively from given directory.\n\n"
"Options:\n"
" --append=<file> This allows you to provide information about\n"
" functions by providing an implementation for these.\n"
@ -654,7 +654,7 @@ void CmdLineParser::PrintHelp()
" Several ids can be given if you separate them with\n"
" commas.\n"
" --error-exitcode=<n> If errors are found, integer [n] is returned instead\n"
" of default 0. EXIT_FAILURE is returned\n"
" of default 0. " << EXIT_FAILURE << " is returned\n"
" if arguments are not valid or if no input files are\n"
" provided. Note that your operating system can\n"
" modify this value, e.g. 256 can become 0.\n"
@ -680,9 +680,11 @@ void CmdLineParser::PrintHelp()
" -j <jobs> Start [jobs] threads to do the checking simultaneously.\n"
" -q, --quiet Only print error messages.\n"
" --report-progress Report progress messages while checking a file.\n"
#ifdef HAVE_RULES
" --rule=<rule> Match regular expression.\n"
" --rule-file=<file> Use given rule file. For more information, see: \n"
" https://sourceforge.net/projects/cppcheck/files/Articles/\n"
#endif
" -s, --style Deprecated, use --enable=style\n"
" --suppress=<spec> Suppress a specific warning. The format of <spec> is:\n"
" [error id]:[filename]:[line]\n"