mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-10-04 14:21:04 +01:00
Allow whitelist/blacklist files to be passed via command line
This commit is contained in:
@@ -201,6 +201,20 @@ def main():
|
||||
"ignoring non-necessary lines "
|
||||
"(empty lines and comments).",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--whitelist",
|
||||
"-w",
|
||||
dest="whitelistfile",
|
||||
default="",
|
||||
help="Whitelist file to use while generating hosts files.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--blacklist",
|
||||
"-x",
|
||||
dest="blacklistfile",
|
||||
default="",
|
||||
help="Blacklist file to use while generating hosts files.",
|
||||
)
|
||||
|
||||
global settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user