-
First Check
Commit to Help
Example Code# This is from the typer docs
# https://typer.tiangolo.com/tutorial/commands/?h=no_args_is_help#a-cli-application-with-multiple-commands
# main.py
import typer
app = typer.Typer(no_args_is_help=True)
@app.command()
def create():
print("Creating user: Hiro Hamada")
@app.command()
def delete():
print("Deleting user: Hiro Hamada")
if __name__ == "__main__":
app() Descriptionrunning: ` Usage: main.py [OPTIONS] COMMAND [ARGS]... ╭─ Options ────────╮ ProblemWhy is there the Error Lable/Box? Operating SystemLinux Operating System DetailsUbuntu 24 Typer Versionpython -c "import typer; print(typer.version)" - > 0.16.0 Python Versionpoetry run python3 --version -> Python 3.12.2 Additional Contextfrom my pyproject toml: dependencies = [ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This seems to have been a bug introduced when compatibility with An temporary solution is to downgrade to |
Beta Was this translation helpful? Give feedback.
-
Thanks for the report! This has been fixed by PR #1278 and released as Typer v.0.16.1. |
Beta Was this translation helpful? Give feedback.
Thanks for the report! This has been fixed by PR #1278 and released as Typer v.0.16.1.
As @ElliottKasoar mentioned, the issue happened when using Click 8.2.0 or higher.