diff options
| author | Russ Cox <rsc@golang.org> | 2018-06-12 16:40:52 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2018-06-13 13:45:21 +0000 |
| commit | ee2e8ecb19d986c42941af96ad8647cb0bf81996 (patch) | |
| tree | a323cbc42c92a41ac840b9e4dd2c452cfbd731f7 /src | |
| parent | 1041ac8781be0fc6b7108b8270f583660e72ec77 (diff) | |
| download | go-ee2e8ecb19d986c42941af96ad8647cb0bf81996.tar.xz | |
cmd/go: fix go list usage line
CL 108156 added -cgo and -export,
but in the usage line it added -cgo and -list.
CL 117015 correctly added -export to the usage line.
All that remains is to remove -list.
Change-Id: I8cc5cfc78bc6b52080ae1b861f92620a8f18b53f
Reviewed-on: https://go-review.googlesource.com/118375
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/alldocs.go | 2 | ||||
| -rw-r--r-- | src/cmd/go/internal/list/list.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 3494601e69..d37942b738 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -579,7 +579,7 @@ // // Usage: // -// go list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages] +// go list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-test] [build flags] [packages] // // List lists the packages named by the import paths, one per line. // diff --git a/src/cmd/go/internal/list/list.go b/src/cmd/go/internal/list/list.go index d519dcc5e0..218999c7e8 100644 --- a/src/cmd/go/internal/list/list.go +++ b/src/cmd/go/internal/list/list.go @@ -23,7 +23,7 @@ import ( ) var CmdList = &base.Command{ - UsageLine: "list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]", + UsageLine: "list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-test] [build flags] [packages]", Short: "list packages", Long: ` List lists the packages named by the import paths, one per line. |
