Skip to content

fix: --output flag writes the file without requiring --txt (#2992) - #3083

Open
Dev9269 wants to merge 1 commit into
sherlock-project:masterfrom
Dev9269:fix/output-flag-without-txt
Open

fix: --output flag writes the file without requiring --txt (#2992)#3083
Dev9269 wants to merge 1 commit into
sherlock-project:masterfrom
Dev9269:fix/output-flag-without-txt

Conversation

@Dev9269

@Dev9269 Dev9269 commented Aug 20, 2026

Copy link
Copy Markdown

Closes #2992

--output myfile.txt without --txt silently created no file. The help text promises the file is written when --output is used, but the write block was guarded exclusively by args.output_txt.

Minimal fix: the txt write block now also runs when --output is given (if args.output_txt or args.output:). result_file was already computed correctly for the --output case, so the existing open(result_file, "w") writes to the requested path. --folderoutput behavior and the --csv path are untouched; the --output single-username guard (line ~734) already rejects multi-username usage, so the file can never be clobbered across usernames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: --output flag silently ignored unless --txt is also passed

1 participant