summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <bo.andresen@zlin.dk>2007-03-21 17:07:51 +0000
committerBo Ørsted Andresen <bo.andresen@zlin.dk>2007-03-21 17:07:51 +0000
commit01fb47d0ea8c140f6f1b20052858b57d01da8e3a (patch)
treef94e260df27d98b469a9a8c143c38a9f2222af7b
parentc25f68ecbb420daa58775d1576d726c50526071d (diff)
downloadwgetpaste-01fb47d0ea8c140f6f1b20052858b57d01da8e3a.tar.gz
Move the --debug handling to the first argement pass.
-rwxr-xr-xwgetpaste9
1 files changed, 4 insertions, 5 deletions
diff --git a/wgetpaste b/wgetpaste
index 513c03b..f19fa8f 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -284,6 +284,10 @@ while [[ -n "${1}" ]]; do
done
break
;;
+ --debug )
+ set -x
+ DEBUG=true
+ ;;
--*=* )
ARGS[${#ARGS[*]}]="${1%%=*}"
ARGS[${#ARGS[*]}]="${1#*=}"
@@ -328,11 +332,6 @@ while [[ -n "${1}" ]]; do
COMMANDS[${#COMMANDS[*]}]="${2}"
shift 2
;;
- --debug )
- DEBUG=true
- set -x
- shift
- ;;
-d | --description )
[[ -z "${2}" ]] && no_argument "${1}"
DESCRIPTION="${2}"