You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to use typer with custom types, recently a version was released with such a support (thx!).
However, when specifying a parser for a typer.Option(...), the "type" description in --help of the cli shows the parser function name as the argument type.
Usage: my-cli main [OPTIONS] CUSTOM_ARG
Arguments:
CUSTOM_ARG [required]
Options:
--custom-opt PARSE_CUSTOM_CLASS
[default: Foo]
--help Show this message and exit.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
I've been trying to use typer with custom types, recently a version was released with such a support (thx!).
However, when specifying a
parser
for atyper.Option(...)
, the "type" description in--help
of the cli shows the parser function name as the argument type.For example, using the example provided in docs:
(Note PARSE_CUSTOM_CLASS)
Operating System
macOS
Operating System Details
No response
Typer Version
0.9.0
Python Version
3.9.13
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions