diff options
author | ianwoolf <btw515wolf2@gmail.com> | 2022-11-09 16:52:41 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-11-10 21:10:42 +0000 |
commit | fcecf3e1fa318d4c3e8f2142d17bb2e481e94f9d (patch) | |
tree | f20e61e2cbc6e09a8713cfc8e86552ef26fa1d3f /src/cmd/go/alldocs.go | |
parent | 86bbcc6a7503e96ea55d5c685141c7d109b07cde (diff) | |
download | go-fcecf3e1fa318d4c3e8f2142d17bb2e481e94f9d.tar.gz go-fcecf3e1fa318d4c3e8f2142d17bb2e481e94f9d.zip |
cmd/go: enable -x in go mod graph
Updates #35849
Change-Id: Ifa18e448c0d436c18d7204ac755cd36bc28cd612
Reviewed-on: https://go-review.googlesource.com/c/go/+/448935
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r-- | src/cmd/go/alldocs.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index ceae79b524..d493ecc726 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1248,7 +1248,7 @@ // // Usage: // -// go mod graph [-go=version] +// go mod graph [-go=version] [-x] // // Graph prints the module requirement graph (with replacements applied) // in text form. Each line in the output has two space-separated fields: a module @@ -1259,6 +1259,8 @@ // given Go version, instead of the version indicated by the 'go' directive // in the go.mod file. // +// The -x flag causes graph to print the commands graph executes. +// // See https://golang.org/ref/mod#go-mod-graph for more about 'go mod graph'. // // # Initialize new module in current directory |