about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-04-21 05:10:50 +0000
committerClint Adams <clint@users.sourceforge.net>2007-04-21 05:10:50 +0000
commitab159e42d82f7bedb0ee7e64cbd79c2912ff4ea2 (patch)
treee48a93c0afbb2c1fa36c682a5b0241ffe4b2da4e
parentad2d19e2e631ad10dbed53578445ac9929237a89 (diff)
downloadzsh-ab159e42d82f7bedb0ee7e64cbd79c2912ff4ea2.tar.gz
zsh-ab159e42d82f7bedb0ee7e64cbd79c2912ff4ea2.tar.xz
zsh-ab159e42d82f7bedb0ee7e64cbd79c2912ff4ea2.zip
23303: use _guard.
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_date4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2968e369f..5794c2625 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-21  Clint Adams  <clint@zsh.org>
+
+	* 23303: Completion/Unix/Command/_date: use _guard.
+
 2007-04-19  Clint Adams  <clint@zsh.org>
 
 	* 23301: Paul Ackersviller: Functions/Misc/add-zsh-hook:
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date
index 8f85af1ad..d07131dc4 100644
--- a/Completion/Unix/Command/_date
+++ b/Completion/Unix/Command/_date
@@ -43,6 +43,6 @@ else
 fi
 
 _arguments \
-  "$args[@]" \
   '-u[display or set time in UTC]' \
-  ':format or date'
+  ': :_guard "^--*" "format or date"' \
+  "$args[@]"