summaryrefslogtreecommitdiff
path: root/functions/arguments.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:49 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:29 +0100
commit1863ed88740575342008ac5f694d03e944bcece2 (patch)
tree58272f72528cedb7af31ee6e6c2c0f7fbd602160 /functions/arguments.sh
parentda353a5231ad925013d01065768864307c70651a (diff)
downloadvyos-live-build-1863ed88740575342008ac5f694d03e944bcece2.tar.gz
vyos-live-build-1863ed88740575342008ac5f694d03e944bcece2.zip
Adding live-helper 1.0~a5-1.
Diffstat (limited to 'functions/arguments.sh')
-rwxr-xr-xfunctions/arguments.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/functions/arguments.sh b/functions/arguments.sh
index b3db8ee08..8405dcbc9 100755
--- a/functions/arguments.sh
+++ b/functions/arguments.sh
@@ -11,7 +11,7 @@ set -e
Arguments ()
{
- ARGUMENTS="`getopt --longoptions conffile:,debug,force,help,logfile:,quiet,usage,verbose,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`"
+ ARGUMENTS="`getopt --longoptions breakpoints,conffile:,debug,force,help,logfile:,quiet,usage,verbose,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`"
if [ "${?}" != "0" ]
then
@@ -24,16 +24,20 @@ Arguments ()
while true
do
case "${1}" in
+ --breakpoints)
+ LH_BREAKPOINTS="enabled"; shift
+ ;;
+
--conffile)
- CONFFILE="${2}"; shift 2
+ LH_CONFFILE="${2}"; shift 2
;;
--debug)
- DEBUG="true"; shift
+ LH_DEBUG="enabled"; shift
;;
--force)
- FORCE="true"; shift
+ LH_FORCE="enabled"; shift
;;
-h|--help)
@@ -41,11 +45,11 @@ Arguments ()
;;
--logfile)
- LOGFILE="${2}"; shift 2
+ LH_LOGFILE="${2}"; shift 2
;;
--quiet)
- QUIET="true"; shift
+ LH_QUIET="enabled"; shift
;;
-u|--usage)
@@ -53,7 +57,7 @@ Arguments ()
;;
--verbose)
- VERBOSE="true"; shift
+ LH_VERBOSE="enabled"; shift
;;
-v|--version)