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

huangapple go评论95阅读模式
英文:

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

问题

根据文档

用法:

go get [-d] [-t] [-u] [-v] [构建标志] [包]

文本解释了每个开关,但文档中缺少了-v

go help get也没有提到-v,尽管它在用法中明确存在:

$ go help get 
usage: go get [-d] [-t] [-u] [-v] [-insecure] [构建标志] []

这个开关是用来做什么的?

英文:

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?

答案1

得分: 2

这份文档中:

> -v 标志启用详细的进度和调试输出。

Get 命令还接受构建标志来控制安装。请参阅 go help build

有关指定包的更多信息,请参阅 go help packages

有关 'go get' 如何查找要下载的源代码的更多信息,请参阅 go help importpath

英文:

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.

huangapple
  • 本文由 发表于 2021年8月27日 00:44:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/68942463.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定