X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=docs%2Fdoxygen%2Fdoxygen-check.py;h=db560720cc9109ece6239376730aa7376f80c7f0;hb=b7b0dd55e72ea9e54cc40e5c708524a5e92971af;hp=50a7727d29a6b745916a82facfe8d4c7509ac2cf;hpb=6ca725fdf2ccc340787ca05f91df722ff971cc05;p=alexxy%2Fgromacs.git diff --git a/docs/doxygen/doxygen-check.py b/docs/doxygen/doxygen-check.py index 50a7727d29..db560720cc 100755 --- a/docs/doxygen/doxygen-check.py +++ b/docs/doxygen/doxygen-check.py @@ -354,6 +354,8 @@ def main(): help='Issue notes for comments ignored by Doxygen') parser.add_option('-q', '--quiet', action='store_true', help='Do not write status messages') + parser.add_option('--exitcode', action='store_true', + help='Return non-zero exit code if there are warnings') options, args = parser.parse_args() installedlist = [] @@ -401,4 +403,7 @@ def main(): reporter.report_unused_filters() reporter.close_log() + if options.exitcode and reporter.had_warnings(): + sys.exit(1) + main()