-2

According to documentation

Usage:

go get [-d] [-t] [-u] [-v] [build flags] [packages]

The text explain every switch, but -v is missing from docs.

go help get also doesn't mention -v, although it is clearly present in usage:

$ go help get 
usage: go get [-d] [-t] [-u] [-v] [-insecure] [build flags] [packages]

What is this switch for?

natenho
  • 5,231
  • 4
  • 27
  • 52
  • 1
    _Is_ it missing? I could find _"print the names of packages as they are compiled"_ on that page. – jonrsharpe Aug 26 '21 at 16:45
  • 3
    It is because you have missed a paragraph. https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies `The build flags are shared by the build, clean, get, install, list, run, and test commands:` –  Aug 26 '21 at 17:33
  • So why `go help get` and doc shows "-v" as it was apart from [build flags] ? I don't know why the question is being down voted, is that so bad? :( – natenho Aug 26 '21 at 17:47
  • never mind and try again, the crowd is always happy to vote, up or down. the crowd can be wrong too. really bad question are closed or deleted. if you post too much bad question, you will get banned, you are lucky if that is your only problem in life... though this question is not very interesting from a programming POV. this surely is just some glitches in the doc for good reasons we dont understand from that far away of the duty to write and maintain it. consider to rise an issue and help fixing it in https://cs.opensource.google/go/go/+/master:src/cmd/go/alldocs.go –  Aug 27 '21 at 06:40
  • *"the build flags are shared by..."* - this explains everything, but people who downvoted don't seem to know about this ;) – starriet May 13 '22 at 06:03

1 Answers1

2

From this documentation :

The -v flag enables verbose progress and debug output.

Get also accepts build flags to control the installation. See go help build.

For more about specifying packages, see go help packages.

For more about how 'go get' finds source code to download, see go help importpath.

ttrasn
  • 4,322
  • 4
  • 26
  • 43