Skip to content

Adds output flag#1

Open
ajmeese7 wants to merge 3 commits intoYashGoti:masterfrom
TargetPackage:master
Open

Adds output flag#1
ajmeese7 wants to merge 3 commits intoYashGoti:masterfrom
TargetPackage:master

Conversation

@ajmeese7
Copy link
Copy Markdown

Allows users to redirect output to a file instead of stdout if they prefer. Useful when writing automation scripts.

@brianokinyi
Copy link
Copy Markdown

I get this error when I run without --output flag:

Traceback (most recent call last):
File "/usr/bin/crtsh", line 48, in
file = open(args.output, "w")
^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType

@ajmeese7
Copy link
Copy Markdown
Author

ajmeese7 commented Aug 4, 2024

Good catch @brianokinyi, that should fix it. Didn't test extensively for this PR, obviously.

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.

2 participants