Skip to content

Commit ee2e8ec

Browse files
committed
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 <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 1041ac8 commit ee2e8ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/cmd/go/alldocs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
//
580580
// Usage:
581581
//
582-
// go list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]
582+
// go list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-test] [build flags] [packages]
583583
//
584584
// List lists the packages named by the import paths, one per line.
585585
//

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
var CmdList = &base.Command{
26-
UsageLine: "list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]",
26+
UsageLine: "list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-test] [build flags] [packages]",
2727
Short: "list packages",
2828
Long: `
2929
List lists the packages named by the import paths, one per line.

0 commit comments

Comments
 (0)