commit:     b1403d22c477e1801fa5c1f611a5509720fe2407
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri May 22 13:31:23 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri May 22 13:31:23 2020 +0000
URL:        
https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=b1403d22

src/binutils-config: add --nocolor option

For symmetry with gcc-config. Will allow iterating through
targets in pkg_*() phases.

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 src/binutils-config | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/binutils-config b/src/binutils-config
index fdee7df..4dc4939 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -36,6 +36,7 @@ cat << USAGE_END
 Usage: ${HILITE}binutils-config${NORMAL} ${GOOD}[options]${NORMAL} 
${BRACKET}[binutils profile]${NORMAL}
 
 ${HILITE}General Options:${NORMAL}
+  ${GOOD}-C, --nocolor${NORMAL}              Disable color output
   ${GOOD}-c, --get-current-profile${NORMAL}  Print current profile
   ${GOOD}-l, --list-profiles${NORMAL}        Print a list of available profiles
   ${GOOD}-u, --uninstall${NORMAL}            Remove all signs of specified 
target
@@ -385,6 +386,7 @@ while [[ $# -gt 0 ]] ; do
                -c|--get-current-profile)  select_action get_current_profile ;;
                -l|--list|--list-profiles) select_action list_profiles ;;
                -u|--uninstall)            select_action uninstall_target ;;
+               -C|--nocolor) ;; # nothing to do; functions.sh parsed this for 
us
                -d|--debug)                DEBUG="yes" ;;
                -h|--help)                 usage 0 ;;
                --enable-native-links)     USE_NATIVE_LINKS="yes" ;;

Reply via email to