Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: get --verbose #12197

Closed
techtonik opened this issue Aug 19, 2015 · 4 comments
Closed

cmd/go: get --verbose #12197

techtonik opened this issue Aug 19, 2015 · 4 comments

Comments

@techtonik
Copy link

It is unclear what go is doing while trying to get LXD for development with go get github.com/lxc/lxd. It hangs for a lot of time and I don't know if it is network problem or just long checkout:

$ go version
go version go1.4.2 linux/amd64

What I expect at first is some command line help:

$ go get github.com/lxc/lxd -h
package -h: unrecognized import path "-h"
$ go get github.com/lxc/lxd --help
package --help: unrecognized import path "--help"

And then:

$ go get github.com/lxc/lxd --verbose
downloading ....
compiling ...
etc ...
@dominikh
Copy link
Member

Flags go before arguments.

dominikh-pc ~ $ go get -h github.com/lxc/lxd
usage: get [-d] [-f] [-fix] [-t] [-u] [build flags] [packages]
[...]

(and of course, with -h it makes no sense to specify a package path).

Verbose also exists: -v

@techtonik
Copy link
Author

@dominikh it is a convenience feature. Editing a line to insert --help before package name when you need to lookup something you've forgot is a nuisance after Python where optparse handles this gracefully.

Well, cool that -v exists, but you see that I was unable to use it, because well I used to add options at the end.

@mikioh mikioh changed the title go get --verbose cmd/go: get --verbose Aug 21, 2015
@epitron
Copy link

epitron commented Mar 13, 2016

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

Shouldn't it list -v there?

@bradfitz
Copy link
Contributor

This bug is closed. We don't re-use old bugs.

@golang golang locked and limited conversation to collaborators Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants