dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.36k stars 360 forks source link

🐛 When piping --help, the output should not contain escape chars #1570

Open mentonin opened 7 months ago

mentonin commented 7 months ago

Using delta --help`` produces auto highlighted output, which can be bothersome when piped to a pager or e.g.bat -l help`. When sending to pipe, the escape codes should be removed.