Merge pull request #457 from mstock/bugfix/no-warnings

Disable warnings if --no-warnings is passed or they are disabled in config file
This commit is contained in:
wummel 2014-03-01 15:21:18 +01:00
commit 1cf8dea02f

View file

@ -440,7 +440,7 @@ if options.debug and not __debug__:
# apply commandline options and arguments to configuration
constructauth = False
do_profile = False
if options.warnings:
if not options.warnings:
config["warnings"] = options.warnings
if options.externstrict:
pats = [linkcheck.get_link_pat(arg, strict=True) \