//
// Usage:
//
-// go get [-t] [-u] [-v] [-tool] [build flags] [packages]
+// go get [-t] [-u] [-tool] [build flags] [packages]
//
// Get resolves its command-line arguments to packages at specific module versions,
// updates go.mod to require those versions, and downloads source code into the
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,
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.