-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to include a Prolog in --help
#537
Comments
Here is one way (overriding
|
Maybe this needs to be a separate ticket, but I would like to be able to call a custom function in either prolog or epilog. The reason is that I use rich to create a table of data sources that can be accessed by various commands; I can't just dump that table into a decorator (as far as I know). Ideally I could just add a @prolog or @epilog decorator to a function, and let it do whatever it wants. |
First Check
Commit to Help
Example Code
`--help`
Description
I have seen it is possible to add an epilog to the
--help
command, as here.Would it be possible to add a custom Prolog above the "Usage..." line too?
Operating System
Linux
Operating System Details
No response
Typer Version
0.7.0
Python Version
Python 3.11.0
Additional Context
No response
The text was updated successfully, but these errors were encountered: