diff options
author | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-03-21 17:07:51 +0000 |
---|---|---|
committer | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-03-21 17:07:51 +0000 |
commit | 01fb47d0ea8c140f6f1b20052858b57d01da8e3a (patch) | |
tree | f94e260df27d98b469a9a8c143c38a9f2222af7b | |
parent | c25f68ecbb420daa58775d1576d726c50526071d (diff) | |
download | wgetpaste-01fb47d0ea8c140f6f1b20052858b57d01da8e3a.tar.gz |
Move the --debug handling to the first argement pass.
-rwxr-xr-x | wgetpaste | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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}" |