diff options
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_argument_sets | 2 | ||||
-rw-r--r-- | Completion/Base/_arguments | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Base/_argument_sets b/Completion/Base/_argument_sets index ad59effdc..5218fef69 100644 --- a/Completion/Base/_argument_sets +++ b/Completion/Base/_argument_sets @@ -20,7 +20,7 @@ ocontext=() while true; do end=$argv[(i)-] - _arguments -M xor "$1" "$all[@]" "${(@)argv[2,end-1]}" + _arguments -m xor "$1" "$all[@]" "${(@)argv[2,end-1]}" r=$? oopt_args=( "$oopt_args[@]" "${(kv)opt_args}" ) diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 7be7bef8c..0637b2cd5 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -150,13 +150,13 @@ fi multi=(-i) subopts=() -while [[ "$1" = -(O*|C|M*) ]]; do +while [[ "$1" = -(O*|C|m*) ]]; do case "$1" in -C) usecc=yes; shift ;; -O) subopts=( "${(@P)2}" ); shift 2 ;; -O*) subopts=( "${(@P)1[3,-1]}" ); shift ;; - -M) ismulti=yes multi=(-I "$2" "$3"); shift 3 ;; - -M*) ismulti=yes multi=(-I "${1[3,-1]}" "$2"); shift 2 ;; + -m) ismulti=yes multi=(-I "$2" "$3"); shift 3 ;; + -m*) ismulti=yes multi=(-I "${1[3,-1]}" "$2"); shift 2 ;; esac done |