-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go test -h output doesn't work with less #28087
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
Comments
The correct command to view help for
Since it's a valid command, it prints to stdout and exits with zero exit code. So, you can do what you want:
As far as I know, this behavior is consistent with Unix-y tools. E.g., If you wanted to read
|
I don't think
However, I agree that it's normal for usage text to be printed to stderr. A shorter version of what Dmitri suggested above, if you're on Bash, is The issue I linked above would also fix your issue, I believe. |
Thanks for the correction @mvdan, |
I see what you guys are saying. |
What did you do?
I tried to read the
go test -h
doc withless
, like I usually do.What did you expect to see?
Then, fullscreen:
What did you see instead?
Then, fullscreen:
The head of the doc is off screen, and pressing the
less
navigation keys j/k/g/G clears the screen and just shows an empty file:System details
The text was updated successfully, but these errors were encountered: