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

Add Required parameter to flag structs #242

Closed
wants to merge 1 commit into from
Closed

Add Required parameter to flag structs #242

wants to merge 1 commit into from

Conversation

szank
Copy link

@szank szank commented Jun 11, 2015

This change add a 'Required' boolean variable to all Flag structs.
When this parameter is set to true while defining flags in the app/context then cli will return an error if user didn't provide such flag in command line parameters.

Unit test included.

@szank
Copy link
Author

szank commented Jun 11, 2015

I just read issue #85 , closing this request as it breaks Flags interface.

@szank szank closed this Jun 11, 2015
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

Successfully merging this pull request may close these issues.

None yet

1 participant