1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-09 19:51:26 +01:00

23140: handle syntax for iputils variant as well as whichever arping for which we had already been completing.

This commit is contained in:
Clint Adams 2007-01-29 18:44:58 +00:00
parent 2b948e6c37
commit 2f6267dc31
2 changed files with 28 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2007-01-29 Clint Adams <clint@zsh.org>
* 23140: Completion/Unix/Command/_arping: handle syntax for
iputils variant as well as whichever arping for which we
had already been completing.
2007-01-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 23136, 23138: Src/utils.c, Test/A03quoting.ztst: 23097 added

View file

@ -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 @@ _arguments -s \
'-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