In few words, it does not work :) Thanks.
It seems that the order matters pena portage # java-config --nocolor -p xalan-2 !!! ERROR: Package xalan-2 was not found! pena portage # java-config -p xalan-2 --nocolor !!! ERROR: Package xalan-2 was not found! The second one is colored and the first one is not. I think it shouldn't matter you give the --nocolor switch.
Created attachment 103697 [details, diff] patch for java-config-2 Try this patch applied to /usr/bin/java-config-2
Fixed in 2.0.31. Thanks for reporting. Please reopen if you still have issues.