Feature Request
When using the argparse approach (with_argparse decorator), the type argument of add_argument can be used for non-basic type conversion (see for example). The same is not possible when using the with_annotated decorator.
Possible design for a solution
Either allow custom types (as Typer does — see custom types) and make a best-effort type conversion for arbitrary annotations, or add an additional parameter to Option and Argument (for example conversion) that enables a two-step type conversion approach.
Feature Request
When using the
argparseapproach (with_argparsedecorator), thetypeargument ofadd_argumentcan be used for non-basic type conversion (see for example). The same is not possible when using thewith_annotateddecorator.Possible design for a solution
Either allow custom types (as
Typerdoes — see custom types) and make a best-effort type conversion for arbitrary annotations, or add an additional parameter toOptionandArgument(for exampleconversion) that enables a two-step type conversion approach.