Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go test -h output doesn't work with less #28087
What did you do?
I tried to read the
What did you expect to see?
What did you see instead?
The head of the doc is off screen, and pressing the
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.
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.