diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 13:46:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 13:46:20 +0000 |
commit | af1a55315c9d5e054f8821ae30099a61c8b8cb99 (patch) | |
tree | 94a20d0963ffb1664a92d278507ae0651ef46aef /Completion/Base/_arguments | |
parent | 5609fe071d9499b13467f5d9f8ff56d1f8f2594e (diff) | |
download | zsh-af1a55315c9d5e054f8821ae30099a61c8b8cb99.tar.gz zsh-af1a55315c9d5e054f8821ae30099a61c8b8cb99.tar.xz zsh-af1a55315c9d5e054f8821ae30099a61c8b8cb99.zip |
zsh-workers/8644
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 |