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

No check for mandatory when using option #101

Open
ookami-kb opened this issue Jun 14, 2024 · 1 comment
Open

No check for mandatory when using option #101

ookami-kb opened this issue Jun 14, 2024 · 1 comment

Comments

@ookami-kb
Copy link

ookami-kb commented Jun 14, 2024

When using argResults['foo'] there's a check for mandatory option:

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.

@christerswahn
Copy link

👍

@mosuem mosuem transferred this issue from dart-archive/args Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants