cli help: show the flags in alphabetical order
This commit is contained in:
parent
cbea8ceed0
commit
cdb6915a5b
|
@ -538,11 +538,11 @@ bool CppCheck::parseFromArgs(int argc, const char* const argv[])
|
|||
oss << "Cppcheck - A tool for static C/C++ code analysis\n"
|
||||
"\n"
|
||||
"Syntax:\n"
|
||||
" cppcheck [--append=file] [--enable=<id>]\n"
|
||||
" [--error-exitcode=[n]] [--exitcode-suppressions file] [--force]\n"
|
||||
" [--help] [-Idir] [-j [jobs]] [--quiet] [--style]\n"
|
||||
" [--suppressions file.txt] [--inline-suppr] [--file-list=file.txt]\n"
|
||||
" [--verbose] [--version] [--xml] [file or path1] [file or path] ..\n"
|
||||
" cppcheck [--append=file] [--enable=<id>] [--error-exitcode=[n]]\n"
|
||||
" [--exitcode-suppressions file] [--file-list=file.txt] [--force]\n"
|
||||
" [--help] [-Idir] [--inline-suppr] [-j [jobs]] [--quiet] [--style]\n"
|
||||
" [--suppressions file.txt] [--verbose] [--version] [--xml]\n"
|
||||
" [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"
|
||||
|
@ -564,27 +564,26 @@ bool CppCheck::parseFromArgs(int argc, const char* const argv[])
|
|||
" --exitcode-suppressions file\n"
|
||||
" Used when certain messages should be displayed but\n"
|
||||
" should not cause a non-zero exitcode.\n"
|
||||
" --file-list=file Specify the files to check in a text file. One Filename per line.\n"
|
||||
" -f, --force Force checking on files that have \"too many\"\n"
|
||||
" configurations\n"
|
||||
" -h, --help Print this help\n"
|
||||
" -I [dir] Give include path. Give several -I parameters to give\n"
|
||||
" several paths. First given path is checked first. If\n"
|
||||
" paths are relative to source files, this is not needed\n"
|
||||
" --inline-suppr Enable inline suppressions. Use them by placing one or\n"
|
||||
" more comments in the form: // cppcheck-suppress memleak\n"
|
||||
" on the lines before the warning to suppress.\n"
|
||||
" -j [jobs] Start [jobs] threads to do the checking simultaneously.\n"
|
||||
" -q, --quiet Only print error messages\n"
|
||||
" -s, --style deprecated, use --enable=style\n"
|
||||
" --suppressions file Suppress warnings listed in the file. Filename and line\n"
|
||||
" are optional. The format of the single line in file is:\n"
|
||||
" [error id]:[filename]:[line]\n"
|
||||
" --inline-suppr Enable inline suppressions. Use them by placing one or\n"
|
||||
" more comments in the form: // cppcheck-suppress memleak\n"
|
||||
" on the lines before the warning to suppress.\n"
|
||||
" --file-list=file Specify the files to check in a text file. One Filename per line.\n"
|
||||
" --template '[text]' Format the error messages. E.g.\n"
|
||||
" '{file}:{line},{severity},{id},{message}' or\n"
|
||||
" '{file}({line}):({severity}) {message}'\n"
|
||||
" Pre-defined templates: gcc, vs\n"
|
||||
" --unused-functions deprecated, use --enable=unusedFunctions\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