Reenabled the command line option for colored messages for all scripts. The functionality was added 2008-11-01, but was not really active.

This commit is contained in:
Roland Clobus 2019-05-29 13:15:46 +02:00 committed by Luca Boccassi
parent c4abbbcc7e
commit 56784ca1c0
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@
Arguments () Arguments ()
{ {
ARGUMENTS="$(getopt --longoptions breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")" ARGUMENTS="$(getopt --longoptions breakpoints,color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")"
if [ "${?}" != "0" ] if [ "${?}" != "0" ]
then then
@ -28,6 +28,11 @@ Arguments ()
shift shift
;; ;;
--color)
_COLOR="true"
shift
;;
-c|--conffile) -c|--conffile)
_CONFFILE="${2}" _CONFFILE="${2}"
shift 2 shift 2