- case $1 in
- -l|--l|--le|--lev|--leve|--level)
- shift
- DUMP_LEVEL=$1
- ;;
- -v|--verb|--verbo|--verbos|--verbose)
- shift
- VERBOSE=$1
- ;;
- -V|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "backup; @PACKAGE@ (@VERSION@)"
- exit 0;;
- -L|--li|--lic|--lice|--licen|--licens|--license)
- license
- exit;;
- -t|--ti|--tim|--time)
- shift
- TIME=$1
- ;;
- -f|--f|--fo|--for|--forc|--force)
- FORCE=yes
- ;;
- -h|--h|--he|--hel|--help)
- usage
- exit;;
- *) if [ "x$TIME" != "x" ]; then
- bailout "Extra argument. Try $PROGNAME --help for more info."
- else
- TIME=$1
- fi;;
- esac
- shift
-done
+ if [ -z "$prev" ]; then
+ option=$opt
+ optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
+ else
+ option="${prev}=$opt"
+ prev=""
+ optarg=$opt
+ fi
+ case $option in
+ --l=*|--le=*|--lev=*|--leve=*|--level=*)
+ DUMP_LEVEL=$optarg
+ ;;
+ -l?*) DUMP_LEVEL=`expr $option : '-l\(.*\)'`;;
+ -l|--l|--le|--lev|--leve|--level)
+ prev=--level
+ ;;
+ --verb=*|--verbo=*|--verbos=*|--verbose=*)
+ VERBOSE=$optarg
+ ;;
+ -v|--verb|--verbo|--verbos|--verbose)
+ VERBOSE=100
+ ;;
+ -v*) VERBOSE=`expr $option : '-v\(.*\)'`;;
+ --t=*|--ti=*|--tim=*|--time=*)
+ TIME=$optarg
+ ;;
+ -t?*) TIME=`expr $option : '-t\(.*\)'`;;
+ -t|--t|--ti|--tim|--time)
+ prev=--time
+ ;;
+ -V|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "backup (@PACKAGE_NAME@) @VERSION@"
+ license
+ exit;;
+ -h|--h|--he|--hel|--help)
+ usage
+ exit;;
+ -f|--f|--fo|--for|--forc|--force)
+ FORCE=yes
+ ;;
+ *) if [ "x$TIME" != "x" ]; then
+ bailout "Extra argument. Try $PROGNAME --help for more info."
+ else
+ TIME=$option
+ fi;;
+ esac
+done