]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix go list usage line
authorRuss Cox <rsc@golang.org>
Tue, 12 Jun 2018 20:40:52 +0000 (16:40 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jun 2018 13:45:21 +0000 (13:45 +0000)
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>

src/cmd/go/alldocs.go
src/cmd/go/internal/list/list.go

index 3494601e691585d796303dac0229ca66a8c99a72..d37942b738f34ecba33fed0e4d9e69c5f979b768 100644 (file)
 //
 // 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.
 //
index d519dcc5e08e1ff7a371c8c9e2fec18634d09ea0..218999c7e8e52ae687ff3163b54511b920d2063c 100644 (file)
@@ -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.