Skip to content

fix(help): print description on newlines for long flags - #2978

Open
jdholtz wants to merge 1 commit into
Jguer:nextfrom
jdholtz:help-text-newline
Open

fix(help): print description on newlines for long flags#2978
jdholtz wants to merge 1 commit into
Jguer:nextfrom
jdholtz:help-text-newline

Conversation

@jdholtz

@jdholtz jdholtz commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #2944. When flags are over 21 characters, the description is printed on a new line to avoid the flag from intersecting with the description and keeping everything aligned. This mimics what pacman does for long flags like --disable-sandbox.

I decided to add logic to solve this instead of just adding a newline to the --completioninterval description (the only flag currently over 21 characters) so any future long flags added will automatically be aligned too.

Follow-up to Jguer#2944. When flags are over 21 characters, the description
is printed on a new line to avoid the flag from intersecting with the
description and keeping everything aligned. This mimics what pacman does
for long flags like `--disable-sandbox`.

I decided to add logic to solve this instead of just adding a newline to
the `--completioninterval` description (the only flag currently over 21
characters) so any future long flags added will automatically be aligned
too.
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.

1 participant