Skip to content

Commit ce369c5

Browse files
authored
added/adjusted --xml-version documentation (#4032)
1 parent c7ab356 commit ce369c5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

cli/cmdlineparser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,9 @@ void CmdLineParser::printHelp()
12531253
" -v, --verbose Output more detailed error information.\n"
12541254
" --version Print out version number.\n"
12551255
" --xml Write results in xml format to error stream (stderr).\n"
1256+
" --xml-version=<version>\n"
1257+
" Select the XML file version. Also implies --xml.\n"
1258+
" Currently only version 2 is available. The default version is 2.\n"
12561259
"\n"
12571260
"Example usage:\n"
12581261
" # Recursively check the current folder. Print the progress on the screen and\n"

man/cppcheck.1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ There are false positives with this option. Each result must be carefully invest
610610
<option>--xml-version=&lt;version&gt;</option>
611611
</term>
612612
<listitem>
613-
<para>Select the XML file version. Currently versions 1 and 2 are available. The default version is 1.</para>
613+
<para>Select the XML file version. Also implies --xml. Currently only version 2 is available. The default version is 2.</para>
614614
</listitem>
615615
</varlistentry>
616616
</variablelist>

0 commit comments

Comments
 (0)