Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Obsolete example in doc for _arguments?
- X-seq: zsh-workers 7943
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Obsolete example in doc for _arguments?
- Date: Mon, 20 Sep 1999 10:47:03 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Sun, 19 Sep 1999 05:17:53 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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