英文:
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
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论