Skip to content

Add support for TypeConverter #62

Description

@natemcmaster

Followup to #59

We should

  1. Add a TypeConverterParserAdapter. Implements IValueParser and takes an instance of TypeConverter.
  2. Update ValueParserProvider to fallback to TypeConverterAttribute when present and return a TypeConverterParserAdapter.

As a bonus, we could either

  • Update OptionAttributeConvention/ArgumentConvention to honor TypeConverterAttribute
  • or, update those conventions to make it possible to override how the IValueParser is provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedWe would be willing to take a well-written PR to help fix this.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions