diff options
author | Roland Clobus <rclobus@rclobus.nl> | 2019-05-29 13:15:46 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2019-06-03 10:48:58 +0000 |
commit | 56784ca1c017e414c57f212058fd5b5ac124757d (patch) | |
tree | 192ab73664aebd918e8c5ac10fbb411e079e2099 /functions/arguments.sh | |
parent | c4abbbcc7e40b3716ec62d83191b9df9472f1bf2 (diff) | |
download | vyos-live-build-56784ca1c017e414c57f212058fd5b5ac124757d.tar.gz vyos-live-build-56784ca1c017e414c57f212058fd5b5ac124757d.zip |
Reenabled the command line option for colored messages for all scripts. The functionality was added 2008-11-01, but was not really active.
Diffstat (limited to 'functions/arguments.sh')
-rwxr-xr-x | functions/arguments.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions/arguments.sh b/functions/arguments.sh index eede5c5ce..28e727afb 100755 --- a/functions/arguments.sh +++ b/functions/arguments.sh @@ -10,7 +10,7 @@ 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" ] then @@ -28,6 +28,11 @@ Arguments () shift ;; + --color) + _COLOR="true" + shift + ;; + -c|--conffile) _CONFFILE="${2}" shift 2 |