From ce369c51227f9610640dfe8ff1c57b3b0d96dec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 21 Apr 2022 09:11:59 +0200 Subject: [PATCH] added/adjusted --xml-version documentation (#4032) --- cli/cmdlineparser.cpp | 3 +++ man/cppcheck.1.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 6a6874ff8..d170b500c 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1253,6 +1253,9 @@ void CmdLineParser::printHelp() " -v, --verbose Output more detailed error information.\n" " --version Print out version number.\n" " --xml Write results in xml format to error stream (stderr).\n" + " --xml-version=\n" + " Select the XML file version. Also implies --xml.\n" + " Currently only version 2 is available. The default version is 2.\n" "\n" "Example usage:\n" " # Recursively check the current folder. Print the progress on the screen and\n" diff --git a/man/cppcheck.1.xml b/man/cppcheck.1.xml index 497ad3d1c..ddaf33cc2 100644 --- a/man/cppcheck.1.xml +++ b/man/cppcheck.1.xml @@ -610,7 +610,7 @@ There are false positives with this option. Each result must be carefully invest - Select the XML file version. Currently versions 1 and 2 are available. The default version is 1. + Select the XML file version. Also implies --xml. Currently only version 2 is available. The default version is 2.