mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-26 09:04:44 +00:00
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:
parent
e1ccddeea9
commit
4f9aaddef1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue