zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: mtr completion
@ 2004-03-11 22:05 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2004-03-11 22:05 UTC (permalink / raw)
  To: zsh-workers

Completion for Matt's traceroute.
There could be better handling of option exclusivity, and -a could
attempt to get a list of local interface IPs.

Index: Completion/Unix/Command/_mtr
===================================================================
RCS file: Completion/Unix/Command/_mtr
diff -N Completion/Unix/Command/_mtr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_mtr	11 Mar 2004 21:55:04 -0000
@@ -0,0 +1,28 @@
+#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'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-11 22:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 22:05 PATCH: mtr completion Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).