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

Feature request: Required pflags #123

Closed
ghost opened this issue Jul 3, 2015 · 2 comments
Closed

Feature request: Required pflags #123

ghost opened this issue Jul 3, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2015

I would like to be able to set a pflag to a command and make it required to run.

@apriendeau
Copy link
Contributor

I would create an issue at github.com/spf13/pflag because I believe what you are asking for would come from there. What I do is have a PreRun func that checks the validity of flags.

@ghost
Copy link
Author

ghost commented Jul 11, 2015

Forgot about the PreRun stuff, that will probably work just fine. I'm going to close this. Thanks for the help.

@ghost ghost closed this as completed Jul 11, 2015
This issue was closed.
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

1 participant