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 used the GitHub search to find a similar question and didn't find it.
I searched the Typer documentation, with the integrated search.
I already searched in Google "How to X in Typer" and didn't find any information.
I already read and followed all the tutorials in the docs and didn't find an answer.
I already checked if it is not related to Typer but to Click.
Commit to Help
I commit to help with one of those options 👆
Example Code
importtyperchild_app=typer.Typer()
@child_app.command()defchild():
print("Child")
parent_app=typer.Typer()
# parent_app.add_typer(child_app, name="child", help="This is the child app")parent_app.add_typer(child_app, help="This is the child app")
if__name__=="__main__":
parent_app()
Description
Before v0.15.0, we did not have the so-called One File Per Command capability, i.e., grouping of sub commands/typers without a name in a parent typer.
However, this came with a surprise. Now, I cannot get my help printed on parent typers.
Please see the above example code and uncomment the corresponding line and comment-out the following line to see the difference for yourself.
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
Before
v0.15.0
, we did not have the so-called One File Per Command capability, i.e., grouping of sub commands/typers without a name in a parent typer.However, this came with a surprise. Now, I cannot get my
help
printed onparent
typers.Please see the above example code and uncomment the corresponding line and comment-out the following line to see the difference for yourself.
Operating System
Linux
Operating System Details
No response
Typer Version
0.15.1
Python Version
Python 3.11.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions