-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
User confusion over help messages not being colored, despite color being enabled #2806
Comments
I completely agree: if you have the color feature enabled, you should get color automatically by default unless you disable it. People can always disable |
@epage Do you have a design for this if we want to get this into v3? |
While I want to fix our defaults, I don't think this meets the minimum bar for the 3.0 milestone. Whatever the fix will be, will be small, so its easy to slip in, but I'm concerned about the decision making slowing us down and distracting us from other work. |
This one seems much more simple to me to decide on than some of the other defaults questions. I essentially agree with @joshtriplett 100%. If our default features includes color, we color the terminal by default. However, we must maintain a way for users to turn that off both at runtime and by just not compiling the color feature. |
I agree; this one seems straightforward compared to other potential changes to defaults. |
We still have the Always, Auto, Never settings. If there is no real dispute on this (which is never really predictable, see bike shedding), I'll go ahead and remove it. |
) Until we have a modular help generator that can be configured and/or authored by the users themselves as part of #2914, we will provide the flexibility of turning off colored help messages but still wanting colored error messages. This flexibility was available before #2845 and @dbrgn immediately noticed it and requested it back to which I agree. This was also suggested by Josh in [here](clap-rs/clap#2806 (comment))
Rust Version
1.55.0
Affected Version of clap
v3.0.0-beta.4
Expected Behavior Summary
When the color feature is enabled, all coloring is done
Actual Behavior Summary
Users have to know that the
ColoredHelp
setting exists and set itContext
This came up when discussing clap's defaults. In addition being a very popular setting among clap CLIs, a user reported
Depending on what the motivation for this flag existing, we should either
The text was updated successfully, but these errors were encountered: