chg: [[providence] accept multiple TLDs

This commit is contained in:
Alexandre Dulaunoy 2023-01-12 07:21:41 +01:00
parent a8ac67cf00
commit b0fe17660c
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -20,6 +20,7 @@ parser.add_argument(
"--tld", "--tld",
type=str, type=str,
help="Limit to a specific TLD (if not, all known TLDs are tested)", help="Limit to a specific TLD (if not, all known TLDs are tested)",
action="append"
) )
#parser.add_argument("","") #parser.add_argument("","")
@ -60,7 +61,7 @@ def guess_name(name=None, tlds=None):
if not args.tld: if not args.tld:
tlds = cache_suffixes() tlds = cache_suffixes()
else: else:
tlds = [args.tld] tlds = args.tld
results = set() results = set()