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

The "Options" section will always have rich formatting enabled #112

Closed
sounisi5011 opened this issue Dec 9, 2021 · 0 comments · Fixed by #121
Closed

The "Options" section will always have rich formatting enabled #112

sounisi5011 opened this issue Dec 9, 2021 · 0 comments · Fixed by #121

Comments

@sounisi5011
Copy link

I'm using clipanion@3.2.0-rc.4.
In testing my CLI using clipanion, I tried to use the environment variables NO_COLOR and FORCE_COLOR to force disabling color output. However, only the "Options" section was not in text format.

スクリーンショット 2021-12-09 13 24 26
スクリーンショット 2021-12-09 13 24 10

The reason for this is that only the "Options" section uses the richFormat.header() method directly.

if (options.length > 0) {
result += `\n`;
result += `${richFormat.header(`Options`)}\n`;

I think this is a bug because all the other sections use the this.format(colored).header() method.

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 a pull request may close this issue.

1 participant