Disable warnings if --no-warnings is passed or they are disabled in config file

It seems like this was broken since b38317d5 where optparse was replaced with
argparse.
This commit is contained in:
Manfred Stock 2014-01-11 17:24:56 +01:00
parent e1ccddeea9
commit 4f9aaddef1

View file

@ -461,7 +461,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.anchors:
config["anchors"] = options.anchors