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"