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

Group titles should not wrap #130

Closed
hamdanal opened this issue Jul 5, 2024 · 0 comments · Fixed by #131
Closed

Group titles should not wrap #130

hamdanal opened this issue Jul 5, 2024 · 0 comments · Fixed by #131
Labels
argparse Concerns argparse bug Something isn't working rich Concerns rich

Comments

@hamdanal
Copy link
Owner

hamdanal commented Jul 5, 2024

import argparse
from rich_argparse import RichHelpFormatter

parser = argparse.ArgumentParser(
    prog="PROG", formatter_class=lambda prog: RichHelpFormatter(prog, width=4)
)
parser.print_help()

produces
image

@hamdanal hamdanal added bug Something isn't working argparse Concerns argparse rich Concerns rich labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argparse Concerns argparse bug Something isn't working rich Concerns rich
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant