We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
option
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
When using argResults['foo'] there's a check for mandatory option:
argResults['foo']
if (option.mandatory && !_parsed.containsKey(name)) { throw ArgumentError('Option $name is mandatory.'); }
But the new strictly typed argResults.option('foo') doesn't have this check.
argResults.option('foo')
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
Same problem. This is wildly unintuitive and unexpected. A simple check for mandatory inputs during parse() would be ideal too.
parse()
Successfully merging a pull request may close this issue.
When using
argResults['foo']
there's a check for mandatory option:But the new strictly typed
argResults.option('foo')
doesn't have this check.The text was updated successfully, but these errors were encountered: