From f2700874fd43d1531b025c93bbe6374c2d14846c Mon Sep 17 00:00:00 2001 From: Ian Bashford Date: Sun, 4 Oct 2020 20:05:24 +0100 Subject: [PATCH] user-friendly comments - follow up to #1412 (#1486) --- .../generate-domains-blocklist.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/generate-domains-blocklists/generate-domains-blocklist.py b/utils/generate-domains-blocklists/generate-domains-blocklist.py index 604772bf..5412da1a 100755 --- a/utils/generate-domains-blocklists/generate-domains-blocklist.py +++ b/utils/generate-domains-blocklists/generate-domains-blocklist.py @@ -290,7 +290,7 @@ argp.add_argument( argp.add_argument( "-w", "--whitelist", - help="Deprecated. Please use -a or --allowlist", + help=argparse.SUPPRESS, ) argp.add_argument( "-a", @@ -322,7 +322,8 @@ args = argp.parse_args() whitelist = args.whitelist if whitelist: - print("Use of -w WHITELIST has been removed. Please use -a ALLOWLIST instead.") + print("The option to provide a set of names to exclude from the blocklist has been changed from -w to -a\r\n") + argp.print_help() exit(1) conf = args.config