reformatting cli help text to fit better on normal terminal windows that are 80 characters wide

This commit is contained in:
Daniel Marjamäki 2011-12-24 11:27:10 +01:00
parent c81a055caa
commit 47c666308f
1 changed files with 20 additions and 20 deletions

View File

@ -693,25 +693,24 @@ void CmdLineParser::PrintHelp()
"If a directory is given instead of a filename, *.cpp, *.cxx, *.cc, *.c++, *.c,\n"
"*.tpp, and *.txx files are checked recursively from the given directory.\n\n"
"Options:\n"
" --append=<file> This allows you to provide information about\n"
" functions by providing an implementation for them.\n"
" --append=<file> This allows you to provide information about functions\n"
" by providing an implementation for them.\n"
" --check-config Check cppcheck configuration. The normal code\n"
" analysis is disabled by this flag.\n"
" -D<ID> By default Cppcheck checks all configurations.\n"
" Use '-D' to limit the checking. When '-D' is used the\n"
" checking is limited to the given configuration.\n"
" -D<ID> By default Cppcheck checks all configurations. Use -D\n"
" to limit the checking to a particular configuration.\n"
" Example: '-DDEBUG=1 -D__cplusplus'.\n"
" -U<ID> By default Cppcheck checks all configurations.\n"
" Use '-U' to explicitly hide certain #ifdef <ID> code\n"
" paths from checking.\n"
" -U<ID> By default Cppcheck checks all configurations. Use -U\n"
" to explicitly hide certain #ifdef <ID> code paths from\n"
" checking.\n"
" Example: '-UDEBUG'\n"
" --enable=<id> Enable additional checks. The available ids are:\n"
" * all\n"
" Enable all checks\n"
" * style\n"
" Enable all coding style checks. All messages\n"
" with the severities 'style', 'performance'\n"
" and 'portability' are enabled.\n"
" with the severities 'style', 'performance' and\n"
" 'portability' are enabled.\n"
" * performance\n"
" Enable performance messages\n"
" * portability\n"
@ -725,11 +724,11 @@ void CmdLineParser::PrintHelp()
" detailed information, use '--check-config'.\n"
" 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 the default '0'. '" << EXIT_FAILURE << "' is returned\n"
" --error-exitcode=<n> 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"
" provided. Note that your operating system can\n"
" modify this value, e.g. '256' can become '0'.\n"
" provided. Note that your operating system can modify\n"
" this value, e.g. '256' can become '0'.\n"
" --errorlist Print a list of all the error messages in XML format.\n"
" --exitcode-suppressions=<file>\n"
" Used when certain messages should be displayed but\n"
@ -741,15 +740,16 @@ void CmdLineParser::PrintHelp()
" together with '--max-ifdefs=', the last option is the\n"
" one that is effective.\n"
" -h, --help Print this help.\n"
" -I <dir> Give path to search for include files. Give several\n"
" -I parameters to give several paths. First given path is\n"
" -I <dir> Give path to search for include files. Give several -I\n"
" parameters to give several paths. First given path is\n"
" searched for contained header files first. If paths are\n"
" relative to source files, this is not needed.\n"
" --includes-file=<file>\n"
" Specify directory paths to search for included header files\n"
" in a text file. Add one include path per line.\n"
" First given path is searched for contained header files first.\n"
" If paths are relative to source files, this is not needed.\n"
" Specify directory paths to search for included header\n"
" files in a text file. Add one include path per line.\n"
" First given path is searched for contained header\n"
" files first. If paths are relative to source files,\n"
" this is not needed.\n"
" -i <dir or file> Give a source file or source file directory to exclude\n"
" from the check. This applies only to source files so\n"
" header files included by source files are not matched.\n"