* [patch 3/3] _chflags: Update options
@ 2016-09-07 4:04 Matthew Martin
0 siblings, 0 replies; only message in thread
From: Matthew Martin @ 2016-09-07 4:04 UTC (permalink / raw)
To: zsh-workers
Not sure "(specify with -R)" is still needed.
- Matthew Martin
diff --git a/Completion/BSD/Command/_chflags b/Completion/BSD/Command/_chflags
index 726d0fd..43042be 100644
--- a/Completion/BSD/Command/_chflags
+++ b/Completion/BSD/Command/_chflags
@@ -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"'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-07 7:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 4:04 [patch 3/3] _chflags: Update options Matthew Martin
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).