diff options
author | Russ Cox <rsc@golang.org> | 2011-12-20 14:25:23 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-12-20 14:25:23 -0500 |
commit | 5c3cb0cfa4e978f534c61c7869e353aa329c2638 (patch) | |
tree | 6897f7c406422b85fc10487f5704df58658a3b6a /src/cmd/go/run.go | |
parent | 5a5ad29ec0673779b4b0dd55d41bf1878a21c5d3 (diff) | |
download | go-5c3cb0cfa4e978f534c61c7869e353aa329c2638.tar.gz |
go: build runtime/cgo
Also rename -v to -x in the build and install commands,
to match the flag in go test (which we can't change
because -v is taken). Matches sh -x anyway.
R=r, iant, ality
CC=golang-dev
http://codereview.appspot.com/5504045
Diffstat (limited to 'src/cmd/go/run.go')
-rw-r--r-- | src/cmd/go/run.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/go/run.go b/src/cmd/go/run.go index 07bda48db..8c5be53e8 100644 --- a/src/cmd/go/run.go +++ b/src/cmd/go/run.go @@ -12,14 +12,14 @@ func init() { } var cmdRun = &Command{ - UsageLine: "run [-a] [-n] [-v] gofiles...", + UsageLine: "run [-a] [-n] [-x] gofiles...", Short: "compile and run Go program", Long: ` Run compiles and runs the main package comprising the named Go source files. The -a flag forces reinstallation of packages that are already up-to-date. The -n flag prints the commands but does not run them. -The -v flag prints the commands. +The -x flag prints the commands. See also: go build. `, @@ -27,11 +27,11 @@ See also: go build. var runA = cmdRun.Flag.Bool("a", false, "") var runN = cmdRun.Flag.Bool("n", false, "") -var runV = cmdRun.Flag.Bool("v", false, "") +var runX = cmdRun.Flag.Bool("x", false, "") func runRun(cmd *Command, args []string) { var b builder - b.init(*runA, *runN, *runV) + b.init(*runA, *runN, *runX) p := goFilesPackage(args, "") p.targ = "" // force rebuild - no up-to-date copy anywhere a1 := b.action(modeBuild, modeBuild, p) |