Skip to content

Commit 35778aa

Browse files
committed
cmd/go: final edits for add go list -cgo and -export
These got lost because I violated the cardinal rule of Gerrit which is never click the Submit button in the web UI. Change-Id: I8ccdfb5d8691960f244941036d33fb5a5a3f0c9a Reviewed-on: https://go-review.googlesource.com/117015 Reviewed-by: Russ Cox <[email protected]>
1 parent 156bbe2 commit 35778aa

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/cmd/go/alldocs.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
//
580580
// Usage:
581581
//
582-
// go list [-cgo] [-deps] [-e] [-f format] [-json] [-list] [-test] [build flags] [packages]
582+
// go list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]
583583
//
584584
// List lists the packages named by the import paths, one per line.
585585
//
@@ -706,9 +706,8 @@
706706
// a non-nil Error field; other information may or may not be missing
707707
// (zeroed).
708708
//
709-
// The -export flag causes list to set the package's Export field to
710-
// the name of a file containing up-to-date export information for
711-
// the given package.
709+
// The -export flag causes list to set the Export field to the name of a
710+
// file containing up-to-date export information for the given package.
712711
//
713712
// The -test flag causes list to report not only the named packages
714713
// but also their test binaries (for packages with tests), to convey to

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

Lines changed: 3 additions & 4 deletions
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] [-f format] [-json] [-list] [-test] [build flags] [packages]",
26+
UsageLine: "list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]",
2727
Short: "list packages",
2828
Long: `
2929
List lists the packages named by the import paths, one per line.
@@ -151,9 +151,8 @@ printing. Erroneous packages will have a non-empty ImportPath and
151151
a non-nil Error field; other information may or may not be missing
152152
(zeroed).
153153
154-
The -export flag causes list to set the package's Export field to
155-
the name of a file containing up-to-date export information for
156-
the given package.
154+
The -export flag causes list to set the Export field to the name of a
155+
file containing up-to-date export information for the given package.
157156
158157
The -test flag causes list to report not only the named packages
159158
but also their test binaries (for packages with tests), to convey to

0 commit comments

Comments
 (0)