user-friendly comments - follow up to #1412 (#1486)

This commit is contained in:
Ian Bashford 2020-10-04 20:05:24 +01:00 committed by GitHub
parent 7b7107902b
commit f2700874fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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