-
Notifications
You must be signed in to change notification settings - Fork 420
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
Enhancement: printHelpIfRequested should support a custom ColorScheme #433
Comments
You can use the system properties described in the manual. System Properties to Override the Color Scheme
For example:
System property values may specify multiple comma separated styles. |
Ahh, missed that one. Thanks, that solves it for me. For a consistent API though, I would still argue for the above case. It feels a little strange to me that only CommandLine.usage(..) accepts a custom ColorScheme. |
Let's leave this ticket open and I'll get to it at some point. |
Fixed in master. Please verify. |
Yep works, added a junit test for you as well. |
Thanks for the unit test! |
The documentation indicates you can use a custom ColorScheme like so:
However, I have been unable to find a way to use a custom color scheme using
printHelpIfRequested
:Is there a way to achieve this? Specifically I wish to assign a color to all subcommands listed under "Command:". UsageMessageSpec also doesn't allow this customization as far as I can see.
The text was updated successfully, but these errors were encountered: