Skip to content

Restore clap v3 help styling#129

Open
GeorgeTR1 wants to merge 2 commits into
oberblastmeister:masterfrom
GeorgeTR1:master
Open

Restore clap v3 help styling#129
GeorgeTR1 wants to merge 2 commits into
oberblastmeister:masterfrom
GeorgeTR1:master

Conversation

@GeorgeTR1

Copy link
Copy Markdown

Bump clap to version 4.4.1, which allows for custom configuration of the help styles. This allows the style of the help to be restored to how it was in clap v3, with colors rather than just bold and underline. This is how it looks now

1

There is of course now the possibility of changing the style to whatever you want, but since trashy previously used clap v3 I thought this made sense, and I prefer it to the underline/bold style. If you want to customize the style for trashy specifically, that would be very understandable

This also fixes an issue when using cmd.exe on windows, where the underlines would behave strangely. See clap-rs/clap#4431

While that issue was supposedly fixed in 4.1.10, I still had strange behavior when resizing the console window:

2

From tests that I did this behavior still exists in the most recent version of clap. Changing to a style that doesn't use underlines fixes it, though, of course. I think that some other terminals have issues with these underlines as well

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