From cdb6915a5b478a3231418fdd3c046568238e9a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 8 May 2010 12:45:38 +0200 Subject: [PATCH] cli help: show the flags in alphabetical order --- lib/cppcheck.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 05a23a6d1..94172f41f 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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=]\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=] [--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"