Add option to dump the email list to the console
This commit is contained in:
parent
ffcef2e800
commit
d8c0c37506
@ -50,6 +50,8 @@ if __name__ == "__main__":
|
|||||||
parser = ap()
|
parser = ap()
|
||||||
parser.add_argument('-e', '--emails', type=int, default=1000, metavar="emails",
|
parser.add_argument('-e', '--emails', type=int, default=1000, metavar="emails",
|
||||||
help='The number of emails to generate (default=1000)', required=False)
|
help='The number of emails to generate (default=1000)', required=False)
|
||||||
|
parser.add_argument('-d', '--dump', action="store_true",
|
||||||
|
help='Dump the email list to the console (Default=no)', required=False)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
email_count = args.emails
|
email_count = args.emails
|
||||||
|
|
||||||
@ -62,7 +64,8 @@ if __name__ == "__main__":
|
|||||||
start = reset_stopwatch()
|
start = reset_stopwatch()
|
||||||
list_with_dups = spawn(email_count)
|
list_with_dups = spawn(email_count)
|
||||||
print(f"GENERATED COMPLETE LIST WITH DUPLICATES: (count = {len(list_with_dups)})")
|
print(f"GENERATED COMPLETE LIST WITH DUPLICATES: (count = {len(list_with_dups)})")
|
||||||
# [print(i) for i in list_with_dups]
|
if args.dump:
|
||||||
|
[print(i) for i in list_with_dups]
|
||||||
t1 = get_elapsed(start)
|
t1 = get_elapsed(start)
|
||||||
print("Elapsed Time: ", t1)
|
print("Elapsed Time: ", t1)
|
||||||
|
|
||||||
@ -76,7 +79,8 @@ if __name__ == "__main__":
|
|||||||
start = reset_stopwatch()
|
start = reset_stopwatch()
|
||||||
dup_list, orig_list = dups(list_with_dups)
|
dup_list, orig_list = dups(list_with_dups)
|
||||||
print(f"IDENTIFIED DUPLICATES IN COMPLETE LIST: (count = {len(dup_list)})")
|
print(f"IDENTIFIED DUPLICATES IN COMPLETE LIST: (count = {len(dup_list)})")
|
||||||
# [print(i) for i in dup_list]
|
if args.dump:
|
||||||
|
[print(i) for i in dup_list]
|
||||||
t2 = get_elapsed(start)
|
t2 = get_elapsed(start)
|
||||||
print("Elapsed time: ", t2)
|
print("Elapsed time: ", t2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user