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: help testflag example not working #61526

Closed
pascaldekloe opened this issue Jul 22, 2023 · 0 comments
Closed

cmd/go: help testflag example not working #61526

pascaldekloe opened this issue Jul 22, 2023 · 0 comments

Comments

@pascaldekloe
Copy link
Contributor

What version of Go are you using (go version)?

$ go version
go version devel go1.22-36091d82f6 Fri Jul 21 16:04:09 2023 +0200 darwin/arm64

Does this issue reproduce with the latest release?

Yes

What did you do?

Run the go test -v -args -x -v example from go help testflag.

For instance, the command

go test -v -args -x -v

will compile the test binary and then run it as

pkg.test -test.v -x -v

What did you expect to see?

no error

What did you see instead?

Go(1) prints flag provided but not defined: -x with exit status 2.

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

No branches or pull requests

1 participant