Skip to content

Conversation

@starsep
Copy link
Contributor

@starsep starsep commented Nov 23, 2025

I used clap-cargo as it's easy to use and provides sensible default styles.
User can disable colors via NO_COLOR=1 environment variable

before after NO_COLOR=1
bat-before bat-after bat-no-color

@keith-hall
Copy link
Collaborator

Thanks for your contribution. I think we will get more consistent colors (which match configured themes, and the highlighting used elsewhere) if we go with this approach instead though... https://github.com/sharkdp/bat/pull/3478/files#diff-ed435662f3e5638b7130fc480d825fdc8b6f85945b63c96c96cd52f026d40042R138

@starsep
Copy link
Contributor Author

starsep commented Nov 23, 2025

Makes sense! I have seen that PR but I haven't realized it also adds color to --help

Closing this PR as it will be handled anyway 😅

@starsep starsep closed this Nov 23, 2025
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 this pull request may close these issues.

2 participants