Tyrrrz / CliFx

Class-first framework for building command-line interfaces
MIT License
1.48k stars 60 forks source link

Custom value converters #81

Closed oshustov closed 3 years ago

oshustov commented 3 years ago

CommandOptionAttribute and CommandParameterAttribute were extended with a new property - Type? Converter { get; set; }, so now user can specify required custom converter's type (that implements IConverter) and it will be used to convert a string value to the custom type.

image

Closes #41

Tyrrrz commented 3 years ago

Thanks a lot!