godocumentationgo-get

What is the -v switch in go get -u -v


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?


Solution

  • 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.