diff --git a/config.json b/config.json index d470b9d..603cc85 100644 --- a/config.json +++ b/config.json @@ -5,7 +5,7 @@ "xml" ], "parserobots":true, - "debug":false, + "debug":true, "output":false, "exclude": [ "action=edit" diff --git a/main.py b/main.py index 2300318..4b3eb97 100755 --- a/main.py +++ b/main.py @@ -76,11 +76,13 @@ def exclude_url(exclude, link): elif type(dict_arg[argument]).__name__ == 'bool': if dict_arg[argument]: dict_arg[argument] = True + else: + dict_arg[argument] = config[argument] else: dict_arg[argument] = config[argument] else: logging.error ("Unknown flag in JSON") - + if arg.debug: logging.basicConfig(level=logging.DEBUG) logging.debug ("Configuration : ")