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

possible bug? clap 4 no longer outputting colored help when compiled with the color feature #4470

Closed
EverlastingBugstopper opened this issue Nov 9, 2022 · 2 comments

Comments

@EverlastingBugstopper
Copy link

Hi! I'm attempting to update a repository from clap 3 to clap 4 (apollographql/rover#1404) and I'm noticing that the output of cargo run -- --help is no longer colored! I tried to manually enable the color feature, in addition to setting ColorChoice::Always, but the output of the help command is still grayscale.

In the docs, it looks like the only thing you can do is to disable colored help output, so I'm not sure exactly what's going on!

Thanks 😄

@epage
Copy link
Member

epage commented Nov 9, 2022

color is generally a shorthand for "any terminal styling" which we are still providing.

Can you confirm that text is being bolded and underlined? If so, then this is expected behavior though we have issues in the 4.x milestome for customizing this

See

@EverlastingBugstopper
Copy link
Author

Ok! I still see coloring enabled for errors and other things - the help text is bolded with no color, wasn't sure if "more neutral palette" meant "no color at all" in the changelog.

Since this is the expected behavior I'll close this issue - thanks for the quick response 😄

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

No branches or pull requests

2 participants