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

support required/optional flags #58

Open
LoveFunDev opened this issue Jan 25, 2023 · 0 comments
Open

support required/optional flags #58

LoveFunDev opened this issue Jan 25, 2023 · 0 comments

Comments

@LoveFunDev
Copy link

Currently, grumble does not have "required/optional" concept for flags. Hope to have this functionality, so can define required flags and optional flags.

For example, if defined flagA as required flag, the command without flagA is invalid.
if defined flagB as optional flag, the command without flagB is valid, and the value of flagB is the default value.

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