Skip to content
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

Allow arbitrary renderables in the descriptions and epilog #99

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

hamdanal
Copy link
Owner

PR #90 changed the internals of RichHelpFormatter to use low level rendering. This lifted some of the restrictions on what can be rendered without sacrificing parity with the argparse formatters.

This PR officially adds support for arbitrary renderables as descriptions (both parser and groups description) and epilog.

PR #90 changed the internals of `RichHelpFormatter` to use low level
rendering. This lifted some of the restrictions on what can be rendered
without sacrificing parity with the argparse formatters.

This PR officially adds support for arbitrary renderables as descriptions
(both parser and groups description) and epilog.

Co-authored-by: Mosquito <[email protected]>
@hamdanal hamdanal added enhancement New feature or request argparse Concerns argparse rich Concerns rich labels Oct 14, 2023
@hamdanal
Copy link
Owner Author

hamdanal commented Oct 14, 2023

A special thanks to @mosquito for the original idea and the implementation attempt at #81. I hope this works for your case, you can look at the example in the README.

@hamdanal hamdanal merged commit 47b8fb7 into main Oct 14, 2023
9 checks passed
@hamdanal hamdanal deleted the renderables branch October 14, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argparse Concerns argparse enhancement New feature or request rich Concerns rich
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant