mirror of
https://github.com/adulau/providence.git
synced 2024-11-21 17:47:04 +00:00
chg: [[providence] accept multiple TLDs
This commit is contained in:
parent
a8ac67cf00
commit
b0fe17660c
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue