zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: iputils-arping
@ 2007-01-29 18:41 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-01-29 18:41 UTC (permalink / raw)
  To: zsh-workers

Hooray for UI consistency.

Index: Completion/Unix/Command/_arping
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_arping,v
retrieving revision 1.2
diff -u -r1.2 _arping
--- Completion/Unix/Command/_arping	31 Jul 2003 15:26:14 -0000	1.2
+++ Completion/Unix/Command/_arping	29 Jan 2007 18:39:57 -0000
@@ -1,5 +1,23 @@
 #compdef arping
 
+if _pick_variant iputils=iputils unix -V; then
+
+_arguments -s \
+  '-f[quit on first reply]' \
+  '-q[be quiet]' \
+  '-b[keep broadcasting, do not go unicast]' \
+  '-D[duplicate address detection mode]'\
+  '-U[Unsolicited ARP mode, update your neighbours]' \
+  '-A[ARP answer mode, update your neighbours]' \
+  '-V[print version and exit]' \
+  '-c[how many packets to send]:count' \
+  '-w[how long to wait for a reply]:timeout' \
+  '-I[interface]:ethernet interface:_net_interfaces' \
+  '-s[source ip address]:source IP address:_hosts' \
+  ':destination:_hosts'
+
+else
+
 _arguments -s \
   '(-)-h[display help information]' \
   '-q[only display error messages]' \
@@ -17,6 +35,8 @@
   '-s[set source MAC address]:source MAC address' \
   '-t[set target MAC address]:target MAC address' \
   '-c[send this many requests]:count' \
-  '-i[interface]:interface' \
+  '-i[interface]:interface:_net_interfaces' \
   '-A[only count addresses matching requested address]' \
-  '(-B):address:_hosts' \
+  '(-B):address:_hosts'
+ 
+fi


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

only message in thread, other threads:[~2007-01-29 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-29 18:41 PATCH: iputils-arping 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).