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

cmd/go: inconsistency between 'go help test' and 'go test -h' #9209

Closed
hyangah opened this issue Dec 5, 2014 · 3 comments
Closed

cmd/go: inconsistency between 'go help test' and 'go test -h' #9209

hyangah opened this issue Dec 5, 2014 · 3 comments
Milestone

Comments

@hyangah
Copy link
Contributor

hyangah commented Dec 5, 2014

'go help test' and 'go test -h' present different docs. 
Other go commands don't seem to exhibit such difference.
Is it intentional? If so, we need to make them mention each other. 

The output of 'go test -h' is what 'go help testflag' outputs btw.
@minux
Copy link
Member

minux commented Dec 5, 2014

Comment 1:

I think it's working as intended.
go help test is an higher level overview of the testing mechanism, and go test -h is
actually `go help testflag`
which gives you an overview of the flags that could be passed.
And note that "go help test" also mentions "go help testflag", but not "go test -h" (we
probably can add the
2nd shortcut)

@hyangah hyangah added the new label Dec 5, 2014
@bradfitz bradfitz removed the new label Dec 18, 2014
@mikioh mikioh changed the title cmd/go/test: inconsistency between 'go help test' and 'go test -h' cmd/go: inconsistency between 'go help test' and 'go test -h' Jan 4, 2015
@rsc
Copy link
Contributor

rsc commented Apr 10, 2015

I think the fix for #6576 in CL 14502065 was a mistake. The output for go test -h before that CL was incomplete in one way before the CL and now it is incomplete in a different way.

Probably the right thing to do for go test -h is to print both the help for test and for testflag.

@rsc rsc added this to the Go1.5 milestone Apr 10, 2015
@gopherbot
Copy link

CL https://golang.org/cl/12173 mentions this issue.

@rsc rsc closed this as completed in 307d691 Jul 15, 2015
@golang golang locked and limited conversation to collaborators Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants