Skip to content
Discussion options

You must be logged in to vote

You just need to remove name="create" and name="lang" in these lines:

app.add_typer(typer_instance=commands.make_structure.app, name="create", help="Create the project structure")
app.add_typer(typer_instance=commands.lang_choise.app, name="lang", help="Pick C or Cpp language")

You specified command name twice - in command() decorator and in add_typer(). In this case you would need to type python main.py create create to access your command:

python main.py create create --help

Related section of docs: https://typer.tiangolo.com/tutorial/one-file-per-command/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
3 participants
Converted from issue

This discussion was converted from issue #402 on September 18, 2025 13:59.