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

bug: getmail completion does not handle exclusive options



Hi,
I made an error in _getmail completion (zsh-workers 22907)

Here is a correction

arno.


Index: Completion/Unix/Command/_getmail
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_getmail,v
retrieving revision 1.1
diff -u -r1.1 _getmail
--- Completion/Unix/Command/_getmail	25 Oct 2006 13:13:23 -0000	1.1
+++ Completion/Unix/Command/_getmail	21 Jan 2007 15:02:15 -0000
@@ -11,17 +11,19 @@
 local -a arguments
     arguments=(
         '--version[show version]'
-        '(--help,-h)'{--help,-h}'[display help]'
-        '(--getmaildir,-g)'{--getmaildir=,-g+}'[specify config/data directory]:config directory:_directories'
+        '(--help -h)'{--help,-h}'[display help]'
+        '(--getmaildir -g)'{--getmaildir=,-g+}'[specify config/data directory]:config directory:_directories'
         \*{--rcfile=,-r+}'[specify configuration file]:config file:_getmail_confiles'
         '--dump[dump configuration]'
         '--trace[print extended information]'
         '*:files:_files'
         \*{--verbose,-v}'[verbose mode]'
-        '(--quiet,-q)'{--quiet,-q}'[silent mode]'
-        '(--delete,-d,--dont-delete,-l)'{--delete,-d}'[delete messages from server]'
-        '(--delete,-d,--dont-delete,-l)'{--dont-delete,-l}"[don't delete messages from server]"
-        '(--new,-n,--all,-a)'{--all,-a}'[retrieve all messages]'
-        '(--new,-n,--all,-a)'{--new,-n}'[retrieve only new messages]'
+        '(--quiet -q)'{--quiet,-q}'[silent mode]'
+        '(--delete -d --dont-delete -l)'{--delete,-d}'[delete messages from server]'
+        '(--delete -d --dont-delete -l)'{--dont-delete,-l}"[don't delete messages from server]"
+        '(--new -n --all -a)'{--all,-a}'[retrieve all messages]'
+        '(--new -n --all -a)'{--new,-n}'[retrieve only new messages]'
     )
 _arguments -s -S $arguments
+
+# vim: se ft=zsh tw=80:

Attachment: signature.asc
Description: Digital signature



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