diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index b3b514a54..9d89c5723 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1009,8 +1009,7 @@ void CmdLineParser::PrintHelp() " --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. Currently versions 1 and\n" - " 2 are available. The default version is 1." + " Select the XML file version. Currently only versions 2 is available." "\n" "Example usage:\n" " # Recursively check the current folder. Print the progress on the screen and\n" diff --git a/man/manual.docbook b/man/manual.docbook index afc14d52c..bbd4812bb 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -525,23 +525,15 @@ cppcheck -DA --force file.c XML output - Cppcheck can generate output in XML format. There - is an old XML format (version 1) and a new - XML format (version 2). Please use the new version if - you can. - - The old version is kept for backwards compatibility only. It will - not be changed, but it will likely be removed someday. Use + Cppcheck can generate output in XML format. Use --xml to enable this format. - The new version fixes a few problems with the old format. The new - format will probably be updated in future versions of cppcheck with new - attributes and elements. A sample command to check a file and output - errors in the new XML format: + A sample command to check a file and output + errors in the XML format: - cppcheck --xml-version=2 file1.cpp + cppcheck --xml file1.cpp - Here is a sample version 2 report: + Here is a sample report: <?xml version="1.0" encoding="UTF-8"?> <results version="2">