From 77e32f457ab05af9219b7af9c7968757bb213d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 2 Sep 2022 18:10:23 +0200 Subject: [PATCH] manual: point at open source / premium manual --- cli/cmdlineparser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index b3fd5ed60..cbb086067 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -992,6 +992,10 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) void CmdLineParser::printHelp() { + const std::string manualUrl(isCppcheckPremium() ? + "https://cppcheck.sourceforge.io/manual.pdf" : + "https://files.cppchecksolutions.com/manual.pdf"); + std::cout << "Cppcheck - A tool for static C/C++ code analysis\n" "\n" "Syntax:\n" @@ -1300,7 +1304,7 @@ void CmdLineParser::printHelp() " cppcheck -I inc1/ -I inc2/ f.cpp\n" "\n" "For more information:\n" - " https://cppcheck.sourceforge.io/manual.pdf\n" + " " << manualUrl << "\n" "\n" "Many thanks to the 3rd party libraries we use:\n" " * tinyxml2 -- loading project/library/ctu files.\n"