]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: final edits for add go list -cgo and -export
authorRuss Cox <rsc@golang.org>
Thu, 19 Apr 2018 14:54:12 +0000 (10:54 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Jun 2018 14:31:33 +0000 (14:31 +0000)
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 <rsc@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/list/list.go

index e1cdbe3fa3c92bf984d80ed4406fa3e7feac4ab1..3494601e691585d796303dac0229ca66a8c99a72 100644 (file)
 //
 // Usage:
 //
-//     go list [-cgo] [-deps] [-e] [-f format] [-json] [-list] [-test] [build flags] [packages]
+//     go list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]
 //
 // List lists the packages named by the import paths, one per line.
 //
 // a non-nil Error field; other information may or may not be missing
 // (zeroed).
 //
-// The -export flag causes list to set the package's Export field to
-// the name of a file containing up-to-date export information for
-// the given package.
+// The -export flag causes list to set the Export field to the name of a
+// file containing up-to-date export information for the given package.
 //
 // The -test flag causes list to report not only the named packages
 // but also their test binaries (for packages with tests), to convey to
index 06a7cf126d078aee424ebc71d9cf2dc81f37fbfc..7261d24839626dd4fd6b010c0d721ce57238e224 100644 (file)
@@ -23,7 +23,7 @@ import (
 )
 
 var CmdList = &base.Command{
-       UsageLine: "list [-cgo] [-deps] [-e] [-f format] [-json] [-list] [-test] [build flags] [packages]",
+       UsageLine: "list [-cgo] [-deps] [-e] [-export] [-f format] [-json] [-list] [-test] [build flags] [packages]",
        Short:     "list packages",
        Long: `
 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
 a non-nil Error field; other information may or may not be missing
 (zeroed).
 
-The -export flag causes list to set the package's Export field to
-the name of a file containing up-to-date export information for
-the given package.
+The -export flag causes list to set the Export field to the name of a
+file containing up-to-date export information for the given package.
 
 The -test flag causes list to report not only the named packages
 but also their test binaries (for packages with tests), to convey to