mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-18 23:10:32 +00:00
Fix status=0 setting being ignored
- Set the correct default for the setting in configuration.Configuration - Detect when the argument is not passed by setting the default to None (store_false sets the default to True)
This commit is contained in:
parent
a977e4d712
commit
4f3f1ac0d4
2 changed files with 3 additions and 3 deletions
|
|
@ -202,7 +202,7 @@ class Configuration(dict):
|
|||
self["warnings"] = True
|
||||
self["fileoutput"] = []
|
||||
self['output'] = 'text'
|
||||
self["status"] = False
|
||||
self["status"] = True
|
||||
self["status_wait_seconds"] = 5
|
||||
self['logger'] = None
|
||||
self.loggers = {}
|
||||
|
|
|
|||
|
|
@ -337,8 +337,8 @@ group.add_argument(
|
|||
group.add_argument(
|
||||
"--no-status",
|
||||
action="store_false",
|
||||
default=None,
|
||||
dest="status",
|
||||
default=True,
|
||||
help=_("Do not print check status messages."),
|
||||
)
|
||||
group.add_argument(
|
||||
|
|
@ -656,7 +656,7 @@ if options.quiet:
|
|||
config["logger"] = config.logger_new("none")
|
||||
if options.recursionlevel is not None:
|
||||
config["recursionlevel"] = options.recursionlevel
|
||||
if options.status:
|
||||
if options.status is not None:
|
||||
config["status"] = options.status
|
||||
if options.threads is not None:
|
||||
if options.threads < 1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue