equery ignores --nocolor (and -C and NOCOLOR environment variable) when --help is given. Normaly equery honours --nocolor and the NOCOLOR environment variable, but there's one exception. Whenever --help is given on the commandline, output appears in color, regardless of the --nocolor option. I guess --help is captured early, and branches to another execution path, where --nocolor is not even tested. It's a minor bug, but should be easy to fix. Reproducible: Always Steps to Reproduce: 1. equery --nocolor (works, no colors shown) 2. equery --nocolor --help (shows colors) # equery --version equery(0.1.4) - Gentoo Package Query Tool Author(s): Karl Trygve Kalleberg could be related to bug 97462 and bug 78701.
Created attachment 68330 [details, diff] Accepts --nocolor or NOCOLOR with --help Although the man page says that <global-opt> has to be 'one' of the following: -q, --quiet - minimal output -C, --nocolor - turn off colours -h, --help - this help screen -V, --version - display version info I think that equery should accept the fact that not all terminals support color when displaying help. This patch should fix this.
Created attachment 68333 [details, diff] Patch against equery 0.1.4 The former patch was against equery 0.1.3
Fix is in subversion
Fix is in gentoolkit-0.2.1_pre8
Confirmed, works in gentoolkit-0.2.1_pre8. Thanks a million, Alexander Wessel
Fixed in gentoolkit-0.2.1