From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1458 invoked from network); 19 Sep 1999 05:18:13 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Sep 1999 05:18:13 -0000 Received: (qmail 14137 invoked by alias); 19 Sep 1999 05:18:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7935 Received: (qmail 14130 invoked from network); 19 Sep 1999 05:17:58 -0000 From: "Bart Schaefer" Message-Id: <990919051753.ZM7141@candle.brasslantern.com> Date: Sun, 19 Sep 1999 05:17:53 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Obsolete example in doc for _arguments? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Here's a snippet from the compsys doc for _aguments. The example doesn't match the description at all. Have I missed something? For options that get an argument after a `=', the function also tries to automatically find out what should be completed as the argument. The possible completions for option-arguments can be described with the arguments after the `--' (which are not used as described above). Each argument contains one description of the form `PATTERN:MESSAGE:ACTION'. The MESSAGE and the ACTION have the same format as for the normal option descriptions described above. The ACTION will be executed to complete arguments of options whose description in the output of the command from the line with the `--help' option matches the PATTERN. For example: _arguments -- '*\*' '(yes no)' \ '*=FILE*' '_files' \ '*=DIR*' '_files -/' Here, `yes' and `no' will be completed as the argument of options whose description ends in a star, file names for options that contain the substring `=FILE' in the description, and paths for options whose description contains `=DIR'. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com