Skip to content

Why Option exposes IsRequired while it also exposes Arity? #2082

Description

@adamsitnik

Currently there are two ways of saying that given Option is required:

  • by setting option.IsRequired to true
  • by setting option.Arity to an arity with MinimumNumberOfValues >= 1.

We also have two different errors for both cases: OptionRequiredArgumentMissing and RequiredOptionWasNotProvided.

I need to understand it better to provide good implementation for #2052

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