Skip to content

Commit

Permalink
cmd/go: drop -v from go help get
Browse files Browse the repository at this point in the history
Fixes #37301

Change-Id: I6d6ac818a73b907638f62d56bd5a7f00a6e6a5ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/632178
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
  • Loading branch information
seankhliao authored and gopherbot committed Dec 5, 2024
1 parent 080466f commit be297ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cmd/go/alldocs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/cmd/go/internal/modget/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import (
var CmdGet = &base.Command{
// Note: flags below are listed explicitly because they're the most common.
// Do not send CLs removing them because they're covered by [get flags].
UsageLine: "go get [-t] [-u] [-v] [-tool] [build flags] [packages]",
UsageLine: "go get [-t] [-u] [-tool] [build flags] [packages]",
Short: "add dependencies to current module and install them",
Long: `
Get resolves its command-line arguments to packages at specific module versions,
Expand Down Expand Up @@ -222,7 +222,6 @@ var (
getU upgradeFlag
getTool = CmdGet.Flag.Bool("tool", false, "")
getInsecure = CmdGet.Flag.Bool("insecure", false, "")
// -v is cfg.BuildV
)

// upgradeFlag is a custom flag.Value for -u.
Expand Down

0 comments on commit be297ba

Please sign in to comment.