about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2004-03-12 15:35:32 +0000
committerClint Adams <clint@users.sourceforge.net>2004-03-12 15:35:32 +0000
commit247b73c60fe3eb1aed28ec48b053c7cb6a13c100 (patch)
tree3dc0eab83bddac6fd774407092db1c57747300c3
parent0cef280ab7384735a8614083e357649cdd808c46 (diff)
downloadzsh-247b73c60fe3eb1aed28ec48b053c7cb6a13c100.tar.gz
zsh-247b73c60fe3eb1aed28ec48b053c7cb6a13c100.tar.xz
zsh-247b73c60fe3eb1aed28ec48b053c7cb6a13c100.zip
19614: Completion/Unix/Command/_mtr: better descriptions and grouping.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_mtr38
2 files changed, 16 insertions, 25 deletions
diff --git a/ChangeLog b/ChangeLog
index e76a4f496..ff0a48a88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-03-12  Clint Adams  <clint@zsh.org>
 
+	* 19614: Completion/Unix/Command/_mtr: better descriptions
+	and grouping.
+
 	* 19613: Completion/Unix/Command/_vux: better descriptions
 	and indentation.
 
diff --git a/Completion/Unix/Command/_mtr b/Completion/Unix/Command/_mtr
index 6e66d9b49..ab8a42335 100644
--- a/Completion/Unix/Command/_mtr
+++ b/Completion/Unix/Command/_mtr
@@ -1,28 +1,16 @@
 #compdef mtr
 
 _arguments -C \
-	'(--help)-h[help]' \
-	'(-h)--help' \
-	'(--version)-v[version]' \
-	'(-v)--version' \
-	'(--report)-r[report]' \
-	'(-r)--report' \
-	'(--report--cycles)-c[report cycles]:count:' \
-	'(-c)--report-cycles:count:' \
-	'(--psize)-p[packet size]:packet size in bytes:' \
-	'(-p)--psize:packet size in bytes:' \
-	'(--curses)-t[curses]' \
-	'(-t)--curses' \
-	'(--no-dns)-n[no dns]' \
-	'(-n)--no-dns' \
-	'(--gtk)-g[gtk]' \
-	'(-g)--gtk' \
-	'(--split)-s[split]' \
-	'(-s)--split' \
-	'(--raw)-l[raw]' \
-	'(-l)--raw' \
-	'(--address)-a[source IP]:source IP:' \
-	'(-a)--address:source IP:' \
-	'(--interval)-i[interval]:seconds:' \
-	'(-i)--interval:seconds:' \
-	':hostname:_hosts'
+	'(-h --help)'{-h,--help}'[help]' \
+	'(-v --version)'{-v,--version}'[version]' \
+	'(-r --report)'{-r,--report}'[report mode]' \
+	'(-c --report-cycles)'{-c,--report-cycles}'[report cycles]:number of pings' \
+	'(-p --psize)'{-p,--psize}'[packet size]:number of bytes' \
+	'(-t --curses)'{-t,--curses}'[curses UI]' \
+	'(-n --no-dns)'{-n,--no-dns}'[no DNS lookups]' \
+	'(-g --gtk)'{-g,--gtk}'[GTK+ UI]' \
+	'(-s --split)'{-s,--split}'[output for a split-user interface]' \
+	'(-l --raw)'{-l,--raw}'[raw output format]' \
+	'(-a --address)'{-a,--address}'[source address]:source IP:_hosts' \
+	'(-i --interval)'{-i,--interval}'[ping interval]:number of seconds' \
+	':destination host:_hosts'