Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Commit b6fc6e8

Browse files
committed
Improve --help description.
1 parent d9a3cb7 commit b6fc6e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cppcheck_junit.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ def __init__(self, file, line, message, severity, error_id, verbose):
3535

3636

3737
def parse_arguments():
38-
parser = argparse.ArgumentParser(description='Converts Cppcheck XML version 2 to JUnit XML '
39-
'format.')
38+
parser = argparse.ArgumentParser(
39+
description='Converts Cppcheck XML version 2 to JUnit XML format.\n'
40+
'Usage:\n'
41+
'\t$ cppcheck --xml-version=2 --enable=all . 2> cppcheck-result.xml\n'
42+
'\t$ cppcheck_junit cppcheck-result.xml cppcheck-junit.xml\n',
43+
formatter_class=argparse.RawDescriptionHelpFormatter)
4044
parser.add_argument('input_file', type=str, help='Cppcheck XML version 2 stderr file.')
4145
parser.add_argument('output_file', type=str, help='JUnit XML output file.')
4246
return parser.parse_args()

0 commit comments

Comments
 (0)