Programmatically emit the help screen #1232
Replies: 2 comments
-
Apparently this is the backtrace:
I'd imagine looking at the call graph of (format|get|show)_help will work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
after an hour of source investigation, using this undocumented command from click of this hidden feature will work. def run(
ctx: typer.Context
):
ctx.get_help() I have nothing nice to say about how impossible this was to find. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
This is a very simple ask, I'd like to programmatically emit the help screen, the one that shows up with --help.
Something like app.(anything you want to call it, literally anything at all) would be great. There is apparently absolutely no way to do it.
show_usage()
,get_help()
, anything at all...Description
Operating System
Linux
Operating System Details
Any
Typer Version
all of them
Python Version
any
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions