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/vet: flag/traversal parity with `go tool vet` #11727

Open
tamird opened this Issue Jul 15, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@tamird
Contributor

tamird commented Jul 15, 2015

There are two ways to invoke vet:

  • go vet, which operates on packages but does not take options:
    usage: vet [-n] [-x] [packages]
  • go tool vet, which takes options but operates on files or directories:
  Usage of vet:
    vet [flags] directory...
    vet [flags] files... # Must be a single package

It would be good to have parity between go vet and go tool vet one way or the other: either go tool vet should be able to operate on packages, or go vet should accept options. Perhaps go tool vet should be a superset of go vet.

@achille-roussel

This comment has been minimized.

achille-roussel commented Jul 27, 2016

I just had a hard time figuring this out and trying to work around it, something like this would have been really awesome:

go vet [-n] [-x] [vet flags] [packages]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment