mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-18 16:20:21 +00:00
Allow whitelist/blacklist files to be passed via command line
This commit is contained in:
1 parent
a2ab99d9b1
commit
dd2d878e95
2 files changed
+21
No files matched your search
@@ -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