diff options
Diffstat (limited to 'Completion/Base/_arguments')
-rw-r--r-- | Completion/Base/_arguments | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 81b70bdcd..b48192db8 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -153,12 +153,12 @@ if (( long )); then fi subopts=() -while getopts ':O:C' opt; do - if [[ "$opt" = O ]]; then - subopts=( "${(@P)OPTARG}" ) - else - usecc=yes - fi +while [[ "$1" = -(O*|C) ]]; do + case "$1" in + -C) usecc=yes; shift ;; + -O) subopts=( "${(@P)2}" ); shift 2 ;; + *) subopts=( "${(@P)1[3,-1]}" ); shift ;; + esac done _style -s options auto-description autod |