From 4f9aaddef1b87875ee07221e6cd3181a654b92f8 Mon Sep 17 00:00:00 2001 From: Manfred Stock Date: Sat, 11 Jan 2014 17:24:56 +0100 Subject: [PATCH] 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. --- linkchecker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkchecker b/linkchecker index 595e6788..2a15857b 100755 --- a/linkchecker +++ b/linkchecker @@ -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