-
-
Notifications
You must be signed in to change notification settings - Fork 779
Closed
Labels
Description
Is your feature request related to a problem
Is your feature request related to a problem? Yes
In this example I'd like to use the name id_
internally, but for the CLI I would like to provide an alternative name id
:
def user(id_: Optional[str] = typer.Argument(None)):
...
For Commands and Options, this is already possible using @app.command("foo")
and typer.Option(..., "--foo", "-f")
.
For Arguments it seems there is no way of doing this... if there was it would be nice to include a section for it in the docs, similar to CLI Option Name
The solution you would like
Maybe this:
typer.Argument(None, "id")
or
typer.Argument(None, name="id")
?