mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-02 06:40:55 +01:00
39209: Update options
This commit is contained in:
parent
48c31e21d3
commit
1fe962cbfd
2 changed files with 11 additions and 3 deletions
|
|
@ -58,17 +58,22 @@ if [[ $OSTYPE = (darwin|dragonfly|freebsd|netbsd)* ]]; then
|
|||
usparse 'sparse file' \
|
||||
usystem 'DOS, Windows and CIFS system'
|
||||
|
||||
fi
|
||||
|
||||
if [[ $OSTYPE = (darwin|dragonfly|freebsd)* ]]; then
|
||||
args=(
|
||||
"-f[don't display diagnostic messages]"
|
||||
'-h[act on symlinks]'
|
||||
'-v[verbose output]'
|
||||
)
|
||||
fi
|
||||
|
||||
_arguments -s -A "-*" $args \
|
||||
_arguments -s -A "-*" : $args \
|
||||
- opth \
|
||||
'-h[act on symlinks]' \
|
||||
- optR \
|
||||
'-R[recurse directories]' \
|
||||
'(-L -P)-H[follow symlinks on the command line (specify with -R)]' \
|
||||
'(-H -P)-L[follow all symlinks (specify with -R)]' \
|
||||
'(-L -H)-P[do not follow symlinks (specify with -R)]' \
|
||||
'-R[recurse directories]' \
|
||||
':file flag:_values -s , "file flags" $flags[@]' \
|
||||
'*:file:_files "$own"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue