From 49e68da5ee11a1e9dd7a6dfe1bcfcb8a0d21fe42 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Wed, 11 Mar 2020 21:30:58 +0000 Subject: allow turning off colour necessary to give control when colour is default enabled Gbp-Dch: Short --- functions/arguments.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/arguments.sh b/functions/arguments.sh index 9aa4b1f1c..877a24dd8 100755 --- a/functions/arguments.sh +++ b/functions/arguments.sh @@ -12,7 +12,7 @@ Arguments () { local ERR=0 - ARGUMENTS="$(getopt --longoptions breakpoints,color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")" || ERR=$? + ARGUMENTS="$(getopt --longoptions breakpoints,color,no-color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")" || ERR=$? if [ $ERR -eq 1 ]; then Echo_error "invalid arguments" @@ -37,6 +37,11 @@ Arguments () shift ;; + --no-color) + _COLOR="false" + shift + ;; + -c|--conffile) _CONFFILE="${2}" shift 2 -- cgit v1.2.3