-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
does it support optional flag? #576
Comments
Hi @etsangsplk, Required flags are not currently supported, they are all optional and have defaults (the Let me know if this helps! |
For my optional flags, I just set it to an empty string by default, and check if the string is not empty to check if the optional flag is set |
Indeed, going to close this in lieu of #85 -- put please reopen if I misunderstood you @etsangsplk |
Given that this is from last year, I think I'm comfortable closing it 🙂 feel free to re-open / open a new issue / comment in support if there's still interest here! |
There are some options that are not always required, and if not required, a builtin default value is set.
fro example when --optionalflag is not entered
the effect of
somecommand --required 1223
is the same as if entered
somecommand --requiredflag 1223 --optionalflag default345
The documentation is not clear wheterh this is supported or not and if so, how that be used.
The text was updated successfully, but these errors were encountered: