From 6167c22eb9167e3b150326d09ccd07ba3cce3937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 30 Dec 2008 18:48:36 +0000 Subject: [PATCH] help : minor updates to help text that cppcheck shows when no parameters are given --- cppcheck.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cppcheck.cpp b/cppcheck.cpp index 07a6a1a62..6b91400a9 100644 --- a/cppcheck.cpp +++ b/cppcheck.cpp @@ -112,19 +112,21 @@ std::string CppCheck::parseFromArgs( int argc, const char* const argv[] ) "C/C++ code checking\n" "\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" "If path is given instead of filename, *.cpp, *.cxx, *.cc and *.c files are \n" "checked recursively from given directory.\n\n" "Options:\n" " -a, --all Make the checking more sensitive. More bugs are detected,\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" " -s, --style Check coding style\n" " -v, --verbose More detailed error reports\n" - " -f, --force Force checking on files that have \"too many\" configurations\n" "\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" " cppcheck --quiet ../myproject/\n" " # Check only files one.cpp and two.cpp and give all information there is:\n"