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

Enhancement: support ANSI codes in paramLabel under the Options listing #440

Closed
bbottema opened this issue Aug 12, 2018 · 4 comments
Closed

Comments

@bbottema
Copy link
Contributor

bbottema commented Aug 12, 2018

I tried giving paramLabel on OptionSpec a color with @|green ...|@, but the text is printed as-is in the "Options:" listing.

image

As the descriptions and the paramLabels have the same color (and are also not aligned), it's becoming really messy having many options. With some clear color distinction I think the descriptions will look a lot better.

@bbottema bbottema changed the title Enhancement: allow paramLabel to have ANSI code (or color config) Enhancement: support ANSI codes in paramLabel under the Options listing Aug 12, 2018
@remkop
Copy link
Owner

remkop commented Aug 12, 2018

Hi Benny,

The ANSI style of the option parameters can be customized with the color scheme.
See https://picocli.info/#_configuring_fixed_elements

@bbottema
Copy link
Contributor Author

Ok, I'll look into that. Thanks.

@bbottema
Copy link
Contributor Author

Actually, here I run into the same issue as #433. I guess I'll have to do without CommandLine.printHelpIfRequested().

@remkop
Copy link
Owner

remkop commented Aug 12, 2018

I’ll see if that can be included in the next release. Pull requests welcome!

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