From: Alberto Donizetti Date: Sat, 28 Jan 2017 10:29:53 +0000 (+0100) Subject: cmd/go: clarify that tag lists are space-separated X-Git-Tag: go1.9beta1~1685 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=48d71990722f3cc81305c794d3d3b6d9007770c8;p=gostls13.git cmd/go: clarify that tag lists are space-separated Apparently the current documentation is confusing users that quickly skim the flags list at the top. Make very clear that build tags are space-separated. Updates #18800 Change-Id: I473552c5a2b70ca03d8bbbd2c76805f7f82b49a2 Reviewed-on: https://go-review.googlesource.com/35951 Reviewed-by: Daniel Martí Reviewed-by: Minux Ma Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 3d5dd2b397..5b768900b1 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -131,16 +131,17 @@ // For example, when building with a non-standard configuration, // use -pkgdir to keep generated packages in a separate location. // -tags 'tag list' -// a list of build tags to consider satisfied during the build. -// For more information about build tags, see the description of +// a space-separated list of build tags to consider satisfied during the +// build. For more information about build tags, see the description of // build constraints in the documentation for the go/build package. // -toolexec 'cmd args' // a program to use to invoke toolchain programs like vet and asm. // For example, instead of running asm, the go command will run // 'cmd args /path/to/asm '. // -// The list flags accept a space-separated list of strings. To embed spaces -// in an element in the list, surround it with either single or double quotes. +// All the flags that take a list of arguments accept a space-separated +// list of strings. To embed spaces in an element in the list, surround +// it with either single or double quotes. // // For more about specifying packages, see 'go help packages'. // For more about where packages and binaries are installed, diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go index 06611885da..2ed4d6b6ec 100644 --- a/src/cmd/go/internal/work/build.go +++ b/src/cmd/go/internal/work/build.go @@ -116,16 +116,17 @@ and test commands: For example, when building with a non-standard configuration, use -pkgdir to keep generated packages in a separate location. -tags 'tag list' - a list of build tags to consider satisfied during the build. - For more information about build tags, see the description of + a space-separated list of build tags to consider satisfied during the + build. For more information about build tags, see the description of build constraints in the documentation for the go/build package. -toolexec 'cmd args' a program to use to invoke toolchain programs like vet and asm. For example, instead of running asm, the go command will run 'cmd args /path/to/asm '. -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +All the flags that take a list of arguments accept a space-separated +list of strings. To embed spaces in an element in the list, surround +it with either single or double quotes. For more about specifying packages, see 'go help packages'. For more about where packages and binaries are installed,