Commit 48d71990 authored by Alberto Donizetti's avatar Alberto Donizetti Committed by Ian Lance Taylor

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/35951Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
Reviewed-by: 's avatarMinux Ma <minux@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 3b84a3c9
...@@ -131,16 +131,17 @@ ...@@ -131,16 +131,17 @@
// For example, when building with a non-standard configuration, // For example, when building with a non-standard configuration,
// use -pkgdir to keep generated packages in a separate location. // use -pkgdir to keep generated packages in a separate location.
// -tags 'tag list' // -tags 'tag list'
// a list of build tags to consider satisfied during the build. // a space-separated list of build tags to consider satisfied during the
// For more information about build tags, see the description of // build. For more information about build tags, see the description of
// build constraints in the documentation for the go/build package. // build constraints in the documentation for the go/build package.
// -toolexec 'cmd args' // -toolexec 'cmd args'
// a program to use to invoke toolchain programs like vet and asm. // a program to use to invoke toolchain programs like vet and asm.
// For example, instead of running asm, the go command will run // For example, instead of running asm, the go command will run
// 'cmd args /path/to/asm <arguments for asm>'. // 'cmd args /path/to/asm <arguments for asm>'.
// //
// The list flags accept a space-separated list of strings. To embed spaces // All the flags that take a list of arguments accept a space-separated
// in an element in the list, surround it with either single or double quotes. // 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 specifying packages, see 'go help packages'.
// For more about where packages and binaries are installed, // For more about where packages and binaries are installed,
......
...@@ -116,16 +116,17 @@ and test commands: ...@@ -116,16 +116,17 @@ and test commands:
For example, when building with a non-standard configuration, For example, when building with a non-standard configuration,
use -pkgdir to keep generated packages in a separate location. use -pkgdir to keep generated packages in a separate location.
-tags 'tag list' -tags 'tag list'
a list of build tags to consider satisfied during the build. a space-separated list of build tags to consider satisfied during the
For more information about build tags, see the description of build. For more information about build tags, see the description of
build constraints in the documentation for the go/build package. build constraints in the documentation for the go/build package.
-toolexec 'cmd args' -toolexec 'cmd args'
a program to use to invoke toolchain programs like vet and asm. a program to use to invoke toolchain programs like vet and asm.
For example, instead of running asm, the go command will run For example, instead of running asm, the go command will run
'cmd args /path/to/asm <arguments for asm>'. 'cmd args /path/to/asm <arguments for asm>'.
The list flags accept a space-separated list of strings. To embed spaces All the flags that take a list of arguments accept a space-separated
in an element in the list, surround it with either single or double quotes. 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 specifying packages, see 'go help packages'.
For more about where packages and binaries are installed, For more about where packages and binaries are installed,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment