-
Notifications
You must be signed in to change notification settings - Fork 1k
dep ensure does not accept -v with -update #1458
Comments
Setting |
Thanks for reporting the bug in our flag parsing! |
I can take this one. The stdlib flag package stops parsing command line options once it encounters an argument that isn't a flag. Short of using an alternative flag package or augmenting the way dep uses the flag package, the correct fix for this issue may simply be updating |
This could also be fixed by documenting -v in the sub command syntax. It is currently not documented, only inferred from other commands.
… On 27 Dec 2017, at 11:49, Adam Woodbeck ***@***.***> wrote:
I can take this one. The stdlib flag package stops parsing command line options once it encounters an argument that isn't a flag. Short of using an alternative flag package or augmenting the way dep uses the flag package, the correct fix for this issue may simply be updating cmd.Args() to ensure the optional -v flag precedes the optional [<spec>...] argument.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@davecheney I think we were talking about the same thing but my terminology was different. The |
What version of
dep
are you using (dep version
)?v0.3.2-83-g13df5561
What
dep
command did you run?What did you expect to see?
verbose output of the update process
What did you see instead?
The text was updated successfully, but these errors were encountered: