3535WithStripHttpStatus : bool = False
3636WithNoIgnoreWww : bool = False
3737
38+ RdapOnly : bool = False
39+ WhoisOnly : bool = False
40+
3841
3942class ResponseCleaner :
4043 data : str
@@ -235,7 +238,9 @@ def testItem1(
235238 WithPublicSuffix , \
236239 WithExtractServers , \
237240 WithStripHttpStatus , \
238- WithNoIgnoreWww
241+ WithNoIgnoreWww , \
242+ RdapOnly , \
243+ WhoisOnly
239244
240245 pc = whois .ParameterContext (
241246 ignore_returncode = IgnoreReturncode ,
@@ -248,6 +253,8 @@ def testItem1(
248253 extractServers = WithExtractServers ,
249254 stripHttpStatus = WithStripHttpStatus ,
250255 noIgnoreWww = WithNoIgnoreWww ,
256+ whoisOnly = WhoisOnly ,
257+ rdapOnly = RdapOnly ,
251258 )
252259
253260 # use the new query (can also simply use q2()
@@ -540,7 +547,7 @@ def showFailures() -> None:
540547
541548
542549def main () -> None : # noqa: C901,PLR0915
543- global PrintJson , Verbose , IgnoreReturncode , PrintGetRawWhoisResult , Ruleset , SIMPLISTIC , WithRedacted , TestAllTld , TestRunOnly , WithPublicSuffix , WithExtractServers , WithStripHttpStatus , WithNoIgnoreWww # noqa: E501 # pylint: disable=line-too-long
550+ global PrintJson , Verbose , IgnoreReturncode , PrintGetRawWhoisResult , Ruleset , SIMPLISTIC , WithRedacted , TestAllTld , TestRunOnly , WithPublicSuffix , WithExtractServers , WithStripHttpStatus , WithNoIgnoreWww , RdapOnly , WhoisOnly # noqa: E501 # pylint: disable=line-too-long
544551
545552 name : str = pathlib .Path (sys .argv [0 ]).name
546553 SIMPLISTIC = True
@@ -573,6 +580,8 @@ def main() -> None: # noqa: C901,PLR0915
573580 "extractServers" ,
574581 "stripHttpStatus" ,
575582 "withNoIgnoreWww" ,
583+ "rdapOnly" ,
584+ "whoisOnly" ,
576585 ],
577586 )
578587 except getopt .GetoptError :
@@ -697,6 +706,12 @@ def main() -> None: # noqa: C901,PLR0915
697706 if opt in ("--withNoIgnoreWww" ):
698707 WithNoIgnoreWww = True
699708
709+ if opt in ("--rdapOnly" ):
710+ RdapOnly = True
711+
712+ if opt in ("--whoisOnly" ):
713+ WhoisOnly = True
714+
700715 msg = f"{ name } SIMPLISTIC: { SIMPLISTIC } "
701716 log .debug (msg )
702717
0 commit comments