diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-08-07 17:27:37 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-08-14 15:57:37 -0400 |
commit | 998ed782161c493ceb766e17deb2b0550dca2c7c (patch) | |
tree | 7679afbfdaace3ba7cba4b81405575688c306977 /buildscripts | |
parent | 10827279fbc6380d4d7774837022b65b3204a988 (diff) | |
download | mongo-998ed782161c493ceb766e17deb2b0550dca2c7c.tar.gz |
SERVER-14827 Do not generate reports by default in errorcodes.py
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/errorcodes.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index e59dec3d05a..1312e4bce6b 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -292,6 +292,10 @@ def main(): parser.add_option("-o", dest="outfile", default="docs/errors.md", help="Report file [default: %default]") + parser.add_option("--report", type="choice", + choices=["none", "markdown"], default="none", + help="What format report should be generated. " \ + "Possible options: [none, markdown]") (options, args) = parser.parse_args() (codes, errors) = readErrorCodes() @@ -302,7 +306,9 @@ def main(): print("next: %s" % next) if ok: - writeMarkdownReport(codes, options.outfile) + reportStyle = options.report + if reportStyle == "markdown": + writeMarkdownReport(codes, options.outfile) elif options.replace: replaceBadCodes(errors, next) else: |