aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/alldocs.go
diff options
context:
space:
mode:
authorianwoolf <btw515wolf2@gmail.com>2022-11-09 16:40:24 +0800
committerGopher Robot <gobot@golang.org>2022-11-10 21:10:40 +0000
commit86bbcc6a7503e96ea55d5c685141c7d109b07cde (patch)
tree9d7174fa7cb6e22ac143a3e26e66d68307ecd277 /src/cmd/go/alldocs.go
parent14018c8becc385f79f62f9cdf24cab93fe3e0cdc (diff)
downloadgo-86bbcc6a7503e96ea55d5c685141c7d109b07cde.tar.gz
go-86bbcc6a7503e96ea55d5c685141c7d109b07cde.zip
cmd/go: enable -x in go mod tidy
Updates #35849 Change-Id: I8b40a2de6a05880a9f939349a714b631888f5f94 Reviewed-on: https://go-review.googlesource.com/c/go/+/448915 Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r--src/cmd/go/alldocs.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index 821ebef3ac9..ceae79b5245 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -1285,7 +1285,7 @@
//
// Usage:
//
-// go mod tidy [-e] [-v] [-go=version] [-compat=version]
+// go mod tidy [-e] [-v] [-x] [-go=version] [-compat=version]
//
// Tidy makes sure go.mod matches the source code in the module.
// It adds any missing modules necessary to build the current module's
@@ -1313,6 +1313,8 @@
// version prior to the one indicated by the 'go' directive in the go.mod
// file.
//
+// The -x flag causes tidy to print the commands download executes.
+//
// See https://golang.org/ref/mod#go-mod-tidy for more about 'go mod tidy'.
//
// # Make vendored copy of dependencies