]> Cypherpunks repositories - gostls13.git/commit
cmd/go: print all test flags in "go test -h"
authorRuss Cox <rsc@golang.org>
Tue, 14 Jul 2015 05:08:30 +0000 (01:08 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 15 Jul 2015 05:34:13 +0000 (05:34 +0000)
commit307d6919bdc4254206b3376eef51d53f2a081970
tree4fc5c04b9969c328d2ba8bab8d8d2dfd737d98ec
parentef6d3a94fbc631299d22c0b0eb09f4a20703f7e0
cmd/go: print all test flags in "go test -h"

Originally 'go test -h' printed the output of 'go help test'.
Then issue #6576 was filed, because that output didn't list (for example) -bench.
CL 14502065 changed 'go test -h' to print the output of 'go help testflag'.
Then issue #9209 was filed, because that output didn't list (for example) -c.

To print all the relevant flags, parts of both 'go help test' and 'go help testflag'
are needed. Refactor the help messages to make those parts available
and print them.

Fixes #9209.

Change-Id: Ie8205b8fb37d00c10d25b3fc98f14286ec46c4e3
Reviewed-on: https://go-review.googlesource.com/12173
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/main.go
src/cmd/go/test.go