Replies: 1 comment
-
I don't think this is a bug.. You can specify help message as a docstring of command or as a import typer
child_app = typer.Typer()
@child_app.command()
def child():
"""
child command help message
"""
print("Child")
parent_app = typer.Typer()
parent_app.add_typer(child_app)
if __name__ == "__main__":
parent_app() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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