The "Options" section will always have rich formatting enabled
sounisi5011 opened this issue · 0 comments
sounisi5011 commented
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.
The reason for this is that only the "Options" section uses the richFormat.header()
method directly.
clipanion/sources/advanced/Cli.ts
Lines 532 to 535 in 488cfd0
I think this is a bug because all the other sections use the this.format(colored).header()
method.