Closed fakuivan closed 3 years ago
Hey, thank you for your interest. You've perfectly captured the purpose of the library.
I like the ideas about Optional
and Tuple
. Could you please add some example cases (function signature → add_argument statement) to #107?
Closing as a duplicate of #107.
I really like the idea of this library, taking a function and turning it into something that can be used from the CLI with minimal repetition. I use type hints extensively as a way to document functions. Are there any plans or ideas on how this could be used to set argument types? I was thinking maybe
typing.get_type_hints
could be used to resolve types, it even works with forward references, additionally from this containers likeOptional
andTuple
could be translated intonargs
and other parameters. Any input on this?