commit: 64be4386e6c85ffea7b8f0d99d6d1d5980e2cf88 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Jan 20 13:29:22 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Jan 20 13:29:22 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=64be4386
FormatReporter: mention `--format` in help Resolves: https://github.com/pkgcore/pkgcheck/issues/522 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcheck/reporters.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pkgcheck/reporters.py b/src/pkgcheck/reporters.py index 089037d1..cf6d9b2b 100644 --- a/src/pkgcheck/reporters.py +++ b/src/pkgcheck/reporters.py @@ -166,7 +166,7 @@ class XmlReporter(Reporter): @coroutine def _process_report(self): - result_template = "<result><class>%(class)s</class>" "<msg>%(msg)s</msg></result>" + result_template = "<result><class>%(class)s</class><msg>%(msg)s</msg></result>" cat_template = ( "<result><category>%(category)s</category>" "<class>%(class)s</class><msg>%(msg)s</msg></result>" @@ -239,7 +239,10 @@ class _ResultFormatter(Formatter): class FormatReporter(Reporter): - """Custom format string reporter.""" + """Custom format string reporter. + + This formatter uses custom format string passed using the ``--format`` + command line argument.""" priority = -1001