Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Obsolete example in doc for _arguments?



Bart Schaefer wrote:

> Here's a snippet from the compsys doc for _aguments.  The example doesn't
> match the description at all.  Have I missed something?

I only remember that I wanted to think about changing it...

Bye
 Sven

diff -u od/Zsh/compsys.yo Doc/Zsh/compsys.yo
--- od/Zsh/compsys.yo	Mon Sep 20 10:21:44 1999
+++ Doc/Zsh/compsys.yo	Mon Sep 20 10:46:54 1999
@@ -897,9 +897,9 @@
 command from the line with the `tt(-)tt(-help)' option matches the
 var(pattern). For example:
 
-example(_arguments -- '*\*'     '(yes no)' \ 
-              '*=FILE*' '_files' \ 
-              '*=DIR*'  '_files -/')
+example(_arguments -- '*\*:toggle:(yes no)' \ 
+              '*=FILE*:file:_files' \ 
+              '*=DIR*:directory:_files -/')
 
 Here, `tt(yes)' and `tt(no)' will be completed as the argument of
 options whose description ends in a star, file names for options that

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author