Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change precedence of quiet and JSON output to favour JSON #570

Merged
merged 3 commits into from
Feb 2, 2023

Conversation

tomnomnom
Copy link
Contributor

@tomnomnom tomnomnom commented Jul 12, 2022

This is a pretty small change that enables something I think is useful.

At the moment if you want all three of:

  • JSON output on stdout
  • No banner / progress bar
  • To still get errors on stderr

There's no easy way to do it. If you redirect stderr to /dev/null you lose the error messages, if you use -s/silent/quiet mode you lose the JSON output.

This change in precedence allows you to use both the -s and -json flags to achieve the above, and shouldn't break any existing use-cases as the -json flag currently does nothing if you're also using the -s flag.

@tomnomnom tomnomnom mentioned this pull request Jul 12, 2022
@joohoi
Copy link
Member

joohoi commented Feb 2, 2023

Sorry for the long wait in the queue. LGTM and merging now.

@joohoi joohoi merged commit 633893c into ffuf:master Feb 2, 2023
@tomnomnom
Copy link
Contributor Author

Thank you for the merge! :)

joohoi added a commit that referenced this pull request Feb 3, 2023
* Changes precedence of quiet and JSON output to favour JSON

* Adds JSON output precedence change to CHANGELOG; TomNomNom to CONTRIBUTORS

---------

Co-authored-by: Joona Hoikkala <joohoi@users.noreply.github.com>
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.

None yet

2 participants