]> Cypherpunks repositories - gostls13.git/commit
cmd/go: nicer error diagnosis in go test
authorRob Pike <r@golang.org>
Tue, 13 Aug 2013 21:03:18 +0000 (07:03 +1000)
committerRob Pike <r@golang.org>
Tue, 13 Aug 2013 21:03:18 +0000 (07:03 +1000)
commitc32a8830bd5d8bc203d21d0b921790737d767f4a
treec6ccbc640340f8c5880c7251e01b4394c20e9024
parent992374f8fb665d4b389019400178189b1b671547
cmd/go: nicer error diagnosis in go test
Before,
        go test -bench .
would just dump the long generic "go help" message. Confusing and
unhelpful. Now the message is short and on point and also reminds the
user about the oft-forgotten "go help testflag".

        % go test -bench
        go test: missing argument for flag bench
        run "go help test" or "go help testflag" for more information
        %

R=rsc
CC=golang-dev
https://golang.org/cl/12662046
src/cmd/go/testflag.go