> This is what _guard is for. Use something like:
>   ': :_guard "^--*" format or date'

Okay.

Index: Completion/Unix/Command/_date
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_date,v
retrieving revision 1.5
diff -u -r1.5 _date
--- Completion/Unix/Command/_date       14 Apr 2007 20:04:07 -0000      1.5
+++ Completion/Unix/Command/_date       21 Apr 2007 05:07:38 -0000
@@ -43,6 +43,6 @@
 fi
 
 _arguments \
-  "[EMAIL PROTECTED]" \
   '-u[display or set time in UTC]' \
-  ':format or date'
+  ': :_guard "^--*" "format or date"' \
+  "[EMAIL PROTECTED]"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to