From f72ba5674af2de18f1d9196a25523d745cca34e2 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Fri, 21 Dec 2018 15:12:52 +0800 Subject: [PATCH] verify: add an option to check one domain --- verify.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/verify.py b/verify.py index 044b476c82..3a432c5538 100755 --- a/verify.py +++ b/verify.py @@ -214,8 +214,13 @@ if __name__ == "__main__": help='File to examine') parser.add_argument('-s', '--sample', nargs='?', default=30, help='Verify only a limited sample. Pass 0 to example all entries.') + parser.add_argument('-d', '--domain', nargs='?', + help='Verify a domain instead of checking a list. Will ignore the other options.') config = parser.parse_args() - v = ChinaListVerify() - v.check_domain_list(config.file, sample=int(config.sample)) + + if config.domain: + v.check_domain_verbose(config.domain) + else: + v.check_domain_list(config.file, sample=int(config.sample))