Skip to content

No check for mandatory when using option #101

Closed
@ookami-kb

Description

@ookami-kb

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions