Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: iputils-arping
- X-seq: zsh-workers 23140
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: iputils-arping
- Date: Mon, 29 Jan 2007 13:41:41 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author