provide defaults for args
authorAnthony Molinaro <redacted>
Mon, 13 Apr 2020 23:20:22 +0000 (16:20 -0700)
committerAnthony Molinaro <redacted>
Mon, 13 Apr 2020 23:20:22 +0000 (16:20 -0700)
updateHostsFile.py

index 9b190468c2875612a854009a4f2b3da2b5d4b714..d7ba9ef26f460f07741e2822d438383f2592b13e 100644 (file)
@@ -205,14 +205,14 @@ def main():
         "--whitelist",
         "-w",
         dest="whitelistfile",
-        default="",
+        default=path_join_robust(BASEDIR_PATH, "blacklist"),
         help="Whitelist file to use while generating hosts files.",
     )
     parser.add_argument(
         "--blacklist",
         "-x",
         dest="blacklistfile",
-        default="",
+        default=path_join_robust(BASEDIR_PATH, "blacklist"),
         help="Blacklist file to use while generating hosts files.",
     )
 
git clone https://git.99rst.org/PROJECT