Skip to content

Providing name should be mandatory when creating Argument<T> and Option<T> #2051

Description

@adamsitnik

Based on our discussion in #2046 we have agreed that:

  • Argument<T> should require a mandatory name to be provided in every ctor:
  • Argument.HelpName needs to be removed and Argument.Name should be used instead
  • Option<T> should require a mandatory name to be provided in explicit way in every ctor. Currently, when the user provides multiple aliases we are choosing the longest one and removing the prefix. It should be explicit.
    public Option(
    string[] aliases,
  • Option.ArgumentHelpName needs to be removed

This issue might seem simple to implement, but I expect it to require a LOT of test changes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions