diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:49 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | da353a5231ad925013d01065768864307c70651a (patch) | |
tree | 589606906e4e8966797f352ec63162cbb4016da0 /functions/arguments.sh | |
parent | 068a51b175546dfeac45c747236817cb41db50d7 (diff) | |
download | vyos-live-build-da353a5231ad925013d01065768864307c70651a.tar.gz vyos-live-build-da353a5231ad925013d01065768864307c70651a.zip |
Adding live-helper 1.0~a4-1.
Diffstat (limited to 'functions/arguments.sh')
-rwxr-xr-x | functions/arguments.sh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/functions/arguments.sh b/functions/arguments.sh index 4f60ae294..b3db8ee08 100755 --- a/functions/arguments.sh +++ b/functions/arguments.sh @@ -9,15 +9,13 @@ set -e -PROGRAM="`basename ${0}`" - Arguments () { - ARGUMENTS="`getopt --longoptions force,help,usage,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`" + ARGUMENTS="`getopt --longoptions conffile:,debug,force,help,logfile:,quiet,usage,verbose,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`" if [ "${?}" != "0" ] then - echo "terminating" >&2 + Echo_error "terminating" >&2 exit 1 fi @@ -27,11 +25,11 @@ Arguments () do case "${1}" in --conffile) - CONFFILE="FIXME"; shift + CONFFILE="${2}"; shift 2 ;; --debug) - DEBUG="FIXME"; shift + DEBUG="true"; shift ;; --force) @@ -43,11 +41,11 @@ Arguments () ;; --logfile) - LOGFILE="FIXME"; shift + LOGFILE="${2}"; shift 2 ;; --quiet) - QUIET="FIXME"; shift + QUIET="true"; shift ;; -u|--usage) @@ -55,7 +53,7 @@ Arguments () ;; --verbose) - VERBOSE="FIXME"; shift + VERBOSE="true"; shift ;; -v|--version) @@ -67,7 +65,7 @@ Arguments () ;; *) - echo "internal error" + Echo_error "internal error" exit 1 ;; esac |