Skip to content

wrap_text breaks option names at hyphens#3414

Closed
kimjune01 wants to merge 1 commit into
pallets:mainfrom
kimjune01:fix-3362-hyphens
Closed

wrap_text breaks option names at hyphens#3414
kimjune01 wants to merge 1 commit into
pallets:mainfrom
kimjune01:fix-3362-hyphens

Conversation

@kimjune01
Copy link
Copy Markdown

Fixes #3362.

textwrap.TextWrapper defaults to break_on_hyphens=True, so option names like --max-retry-count get split across lines in usage output. This passes break_on_hyphens=False to preserve them.

@davidism davidism closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HelpFormatter.write_usage breaks options at a hyphen

2 participants