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

PATCH: _diff_options to use =-



This patch modifies _diff_options to use =-.

Apart from that, I found another use of optional argument in _a2ps:

           "--pretty-print*::style:(${_a2ps_cache_values[1]})" \
           ...

But this is a description for automatic option detection.  Is there a
way to specify that it should use `=-'?

Index: Completion/User/_diff_options
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_diff_options,v
retrieving revision 1.4
diff -u -r1.4 _diff_options
--- Completion/User/_diff_options	2000/05/05 20:36:13	1.4
+++ Completion/User/_diff_options	2000/05/15 23:36:26
@@ -61,10 +61,10 @@
     '(--ignore-matching-lines)-I+[ignore lines that match regex]:line exclusion regex:' \
     '(-a)--text[treat all files as text]' \
     '(--text)-a[treat all files as text]' \
-    "($of $oss)--context=[context diff]::number of lines of copied context:" \
+    "($of $oss)--context=-[context diff]:number of lines of copied context:" \
     "($of $oss)-C+[output a context diff]:number of lines of copied context:" \
     "($of $oss)-c[output a context diff]" \
-    "($of $oss)--unified=[output a unified diff]::number of lines of unified context:" \
+    "($of $oss)--unified=-[output a unified diff]:number of lines of unified context:" \
     "($of $oss)-U+[output a unified diff]:number of lines of unified context:" \
     "($of $oss)-u[output a unified diff]" \
     "($ofwuc $oss -L)--label=[set label to use instead of file name]:label:" \
-- 
Tanaka Akira



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