manual: point at open source / premium manual

This commit is contained in:
Daniel Marjamäki 2022-09-02 18:10:23 +02:00
parent 7046687fce
commit 77e32f457a
1 changed files with 5 additions and 1 deletions

View File

@ -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"