Argument(metavar="MY_ARG") has different meaning for the arguments panel compared to the usage text or the non-rich help output #646
-
|
First of all, thanks to all who are involved, especially to the creator, for your hard work. It's really a cool project. First Check
Commit to Help
Example Code# mre.py (minimal reproducible example)
import typer
from typing_extensions import Annotated
app = typer.Typer()
@app.command()
def show(user: Annotated[str, typer.Argument(metavar="MY_ARG")]):
"""Show user."""
typer.echo(f"[stub] show user: {user}")
if __name__ == '__main__':
app()DescriptionObserved BehaviorWith rich installed, calling the above example with In the usage text Without rich being installed the above example looks like this: and works as expected: in both places Expected BehaviorI expect the respective argument names Operating SystemLinux Operating System DetailsNo response Typer Version0.9.0 Python Version3.9.2 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
I noticed the same. I think this should be turned into an issue? |
Beta Was this translation helpful? Give feedback.
-
Who can do this? Can we or do we need a maintainer for that? |
Beta Was this translation helpful? Give feedback.
-
|
We took a very long time to fix this, apologies 🙈 |
Beta Was this translation helpful? Give feedback.
We took a very long time to fix this, apologies 🙈
Anyway now fixed in 0.26.8 (PR #1410)