From: Rob Pike Date: Thu, 19 Nov 2015 20:33:32 +0000 (-0800) Subject: cmd/go: make it clearer that go generate accepts all build flags X-Git-Tag: go1.6beta1~362 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=997ed6fd3b812a280457f93114dd5aaaf4be056f;p=gostls13.git cmd/go: make it clearer that go generate accepts all build flags Just add one word to clarify that -n -v -x are not the only build flags supported. Fixes #13237. Change-Id: I880472639bf2fc1a0751a83041bc7ddd0c9e55f4 Reviewed-on: https://go-review.googlesource.com/17062 Reviewed-by: Andrew Gerrand --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 7e4892ccd1..82f848d2e2 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -451,7 +451,7 @@ Go generate accepts one specific flag: any trailing spaces and final newline) matches the expression. -It also accepts the standard build flags -v, -n, and -x. +It also accepts the standard build flags including -v, -n, and -x. The -v flag prints the names of packages and files as they are processed. The -n flag prints commands that would be executed. diff --git a/src/cmd/go/generate.go b/src/cmd/go/generate.go index 152b7d3fb1..0834aa7823 100644 --- a/src/cmd/go/generate.go +++ b/src/cmd/go/generate.go @@ -115,7 +115,7 @@ Go generate accepts one specific flag: any trailing spaces and final newline) matches the expression. -It also accepts the standard build flags -v, -n, and -x. +It also accepts the standard build flags including -v, -n, and -x. The -v flag prints the names of packages and files as they are processed. The -n flag prints commands that would be executed.