]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add -args to 'go test' to resolve -v ambiguity
authorRuss Cox <rsc@golang.org>
Mon, 14 Dec 2015 16:04:03 +0000 (11:04 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 01:59:58 +0000 (01:59 +0000)
commit8350e065568c9b9885c136bbda0b38f1f9acbb38
tree5431e9bd0b82ba9e9c5cf77d0b9942d2cec7e311
parent5c596b51fd4745d4e1aa9701bee8d04f897097ae
cmd/go: add -args to 'go test' to resolve -v ambiguity

The new flag -args stops flag processing, leaving the rest of the command line
to be passed to the underlying test binary verbatim. Thus, both of these pass
a literal -v -n on the test binary command line, without putting the go command
into verbose mode or disabling execution of commands:

go test . -args -v -n
go test -args -v -n

Also try to make the documentation a bit clearer.

Fixes #7221.
Fixes #12177.

Change-Id: Ief9e830a6fbb9475d96011716a86e2524a35eceb
Reviewed-on: https://go-review.googlesource.com/17775
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/go_test.go
src/cmd/go/test.go
src/cmd/go/testflag.go