Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
FiloSottile merged 1 commit into
FiloSottile:masterfrom
arp242:help-stdout
Oct 25, 2020
Merged

Make mkcert -help print to stdout instead of stderr#265
FiloSottile merged 1 commit into
FiloSottile:masterfrom
arp242:help-stdout

Conversation

@arp242

@arp242 arp242 commented May 20, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

2 participants