diff options
Diffstat (limited to 'bin/quilt.in')
-rw-r--r-- | bin/quilt.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/bin/quilt.in b/bin/quilt.in index 2e31b93..7a2abfb 100644 --- a/bin/quilt.in +++ b/bin/quilt.in @@ -17,7 +17,7 @@ fi usage() { - echo $"Usage: quilt [--trace] [--quiltrc=XX] command [-h] ..." + echo $"Usage: quilt [--trace[=verbose]] [--quiltrc=XX] command [-h] ..." echo $"Commands are:" quilt_commands \ @@ -68,8 +68,17 @@ do [ "$QUILTRC" = - ] && unset QUILTRC shift ;; # Trace execution of commands - --trace) - BASH_OPTS=-x ;; + --trace*) + BASH_OPTS="${BASH_OPTS:+$BASH_OPTS }-x" + case "${1:7}" in + '') + ;; + =verbose) + BASH_OPTS="${BASH_OPTS:+$BASH_OPTS }-v" ;; + *) + command= + break ;; + esac ;; *) args[${#args[@]}]=$1 ;; esac |