Skip to content

Fix short help abbreviation - #3865

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-short-help-abbreviation
Sep 12, 2026
Merged

Fix short help abbreviation#3865
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-short-help-abbreviation

Conversation

@kdeldycke

@kdeldycke kdeldycke commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Just a small bug I encountered in my CLIs, where as vs. or e.g. was prematurely ending the shorten version of a help message produced by _make_default_short_help.

Also use the opportunity to simplify the calculations and depends on Python's textwrap.shorten.

@kdeldycke
kdeldycke force-pushed the fix-short-help-abbreviation branch from 644deb0 to a3b0493 Compare September 11, 2026 06:31
@kdeldycke kdeldycke added this to the 8.5.1 milestone Sep 11, 2026
@kdeldycke kdeldycke added the help output Help text formatting, layout, and --help rendering label Sep 11, 2026
@kdeldycke
kdeldycke force-pushed the fix-short-help-abbreviation branch from a3b0493 to d1d7126 Compare September 11, 2026 06:41
@kdeldycke
kdeldycke force-pushed the fix-short-help-abbreviation branch from d1d7126 to f67c2bb Compare September 11, 2026 07:01
@Rowlando13
Rowlando13 merged commit 7068985 into pallets:stable Sep 12, 2026
12 checks passed
@kdeldycke
kdeldycke deleted the fix-short-help-abbreviation branch September 12, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help output Help text formatting, layout, and --help rendering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants