about summary refs log tree commit diff
diff options
context:
space:
mode:
-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[@]"