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

Make mkcert -help print to stdout instead of stderr #265

Merged
merged 1 commit into from Oct 25, 2020
Merged

Make mkcert -help print to stdout instead of stderr #265

merged 1 commit into from Oct 25, 2020

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented May 20, 2020

Currently "mkcert -help" prints to stderr, which is rather annoying as:

$ mkcert -help | less

Gives us a blank page, as it pipes only stdout. To get any results in
less I need to use:

$ mkcert 2>&1 | less
$ mkcert |& less     # Non-standard bash/ zsh

Since the user explicitly asked for help with -help, it doesn't make
much sense to output it to stderr IMHO.

Currently "mkcert -help" prints to stderr, which is rather annoying as:

	$ mkcert -help | less

Gives us a blank page, as it pipes only stdout. To get any results in
less I need to use:

	$ mkcert 2>&1 | less
	$ mkcert |& less     # Non-standard bash/ zsh

Since the user explicitly asked for help with -help, it doesn't make
much sense to output it to stderr IMHO.
@FiloSottile FiloSottile merged commit 6649e9d into FiloSottile:master Oct 25, 2020
@FiloSottile
Copy link
Owner

Thank you!

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