Skip to content

Commit 3aeb6d6

Browse files
authored
Merge pull request #2602 from sherlock-project/feat/no-txt
chore: make default --no-txt
2 parents e44fe49 + 4246a7b commit 3aeb6d6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

sherlock_project/sherlock.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,12 +723,22 @@ def main():
723723
help="Include checking of NSFW sites from default list.",
724724
)
725725

726+
# TODO deprecated in favor of --txt, retained for workflow compatibility, to be removed
727+
# in future release
726728
parser.add_argument(
727729
"--no-txt",
728730
action="store_true",
729731
dest="no_txt",
730732
default=False,
731-
help="Disable creation of a txt file",
733+
help="Disable creation of a txt file - WILL BE DEPRECATED",
734+
)
735+
736+
parser.add_argument(
737+
"--txt",
738+
action="store_true",
739+
dest="output_txt",
740+
default=False,
741+
help="Enable creation of a txt file",
732742
)
733743

734744
parser.add_argument(
@@ -892,7 +902,7 @@ def main():
892902
else:
893903
result_file = f"{username}.txt"
894904

895-
if not args.no_txt:
905+
if args.output_txt:
896906
with open(result_file, "w", encoding="utf-8") as file:
897907
exists_counter = 0
898908
for website_name in results:

0 commit comments

Comments
 (0)