diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:17 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | 0d0de885e32ff67d57bb7def451b62d75b8920ab (patch) | |
tree | cd4a159a86207401dbd5990bc0fa3c28825ab6f8 /functions/arguments.sh | |
parent | c68c0a270832ca340429878ce6a0ab606d435b06 (diff) | |
download | vyos-live-build-0d0de885e32ff67d57bb7def451b62d75b8920ab.tar.gz vyos-live-build-0d0de885e32ff67d57bb7def451b62d75b8920ab.zip |
Adding live-helper 1.0~a22-1.
Diffstat (limited to 'functions/arguments.sh')
-rwxr-xr-x | functions/arguments.sh | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/functions/arguments.sh b/functions/arguments.sh index 0bb6441f0..3080f25a0 100755 --- a/functions/arguments.sh +++ b/functions/arguments.sh @@ -11,7 +11,7 @@ set -e Arguments () { - ARGUMENTS="`getopt --longoptions breakpoints,conffile:,debug,force,help,logfile:,trace,root-command:,quiet,usage,verbose,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`" + ARGUMENTS="`getopt --longoptions breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}"`" if [ "${?}" != "0" ] then @@ -25,55 +25,53 @@ Arguments () do case "${1}" in --breakpoints) - LH_BREAKPOINTS="enabled"; shift + LH_BREAKPOINTS="enabled" + shift ;; - --conffile) - LH_CONFFILE="${2}"; shift 2 + -c|-conffile) + LH_CONFFILE="${2}" + shift 2 ;; --debug) - LH_DEBUG="enabled"; shift + LH_DEBUG="enabled" + shift ;; --force) - LH_FORCE="enabled"; shift + LH_FORCE="enabled" + shift ;; -h|--help) - Help; shift - ;; - - --logfile) - LH_LOGFILE="${2}"; shift 2 - ;; - - --trace) - LH_TRACE="enabled"; shift - ;; - - --root-command) - LH_ROOT_COMMAND="${2}"; shift + Help + shift ;; --quiet) - LH_QUIET="enabled"; shift + LH_QUIET="enabled" + shift ;; -u|--usage) - Usage; shift + Usage + shift ;; --verbose) - LH_VERBOSE="enabled"; shift + LH_VERBOSE="enabled" + shift ;; -v|--version) - Version; shift + Version + shift ;; --) - shift; break + shift + break ;; *) |