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

Is there a way to allow any arbitrary flags for a particular command? #663

Closed
treeder opened this issue Sep 1, 2017 · 2 comments
Closed

Comments

@treeder
Copy link

treeder commented Sep 1, 2017

Currently you get: Incorrect Usage: flag provided but not defined: -v if a flag isn't defined, but what if you just want to accept anything so I can pass them along to another command? That possible?

@ustcliao
Copy link

ustcliao commented Sep 8, 2017

I have the same problem. When i tested main func with some test flag (go test ***_test.go -v -x)
I got "Incorrect Usage. flag provided but not defined: -test.v"

Can I run app with unkown parameter?

@treeder
Copy link
Author

treeder commented Sep 8, 2017

I actually figured it out, set SkipFlagParsing: true, on the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants