A simple alias inside /etc/profile to output the meaning of Local USE flags: alias localuse="cat /usr/portage/profiles/use.local.desc | grep --color $1" Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: So a simple command like: # localuse qmail would output everything that matched qmail(and would color the search string) from the use.local.desc mail-filter/qmail-scanner:spamassassin - Build faster spamassassin checks into qmail-scanner mail-filter/spamassassin:qmail - Build qmail functionality and docs mail-mta/qmail:logmail - Enable logging all E-Mails via ~alias/.qmail-log mail-mta/qmail:noauthcram - If you do NOT want AUTHCRAM to be available mail-mta/qmail:notlsbeforeauth - If you do NOT want to require STARTTLS before offering AUTH net-mail/mailman:qmail - Build with delivery options for qmail Of course it would be needed to keep use.local.desc updated and it would be better if the alias only conentrated on the flags and not also the text that descriminates the flag.
Hmm, and what about emerge app-portage/gentoolkit and use euse?
euse --help readlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory readlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory readlink: too many arguments Try `readlink --help' for more information. readlink: too many arguments Try `readlink --help' for more information. ERROR: /make.defaults is not readable worker snortsam # man euse No manual entry for euse worker snortsam # readlink --help Usage: readlink [OPTION]... FILE Display value of a symbolic link on standard output. -f, --canonicalize canonicalize by following every symlink in every component of the given path recursively -n, --no-newline do not output the trailing newline -q, --quiet, -s, --silent suppress most error messages -v, --verbose report error messages --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. worker snortsam # euse inline readlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory readlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory readlink: too many arguments Try `readlink --help' for more information. readlink: too many arguments Try `readlink --help' for more information. ERROR: /make.defaults is not readable worker snortsam # euse list inline readlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory readlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory readlink: too many arguments Try `readlink --help' for more information. readlink: too many arguments Try `readlink --help' for more information. ERROR: /make.defaults is not readable HOW???
(In reply to comment #2) > euse --help > readlink: too many arguments Oh, please search (Bug 75525)... :/ The ~arch version works perfectly fine.
Closing this, we have 'equery uses', 'equery hasuse' and 'euse -i' in gentoolkit, which offer features superior to the suggested one. Reopen if the above is not the funtionality that you need.
Thanks!