From ee2e8ecb19d986c42941af96ad8647cb0bf81996 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 12 Jun 2018 16:40:52 -0400 Subject: [PATCH] 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 Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- src/cmd/go/alldocs.go | 2 +- 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. -- 2.50.0