File: _dhclient

package info (click to toggle)
zsh-beta 4.3.6-dev-0%2B20080723-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 14,752 kB
  • ctags: 7,403
  • sloc: ansic: 90,889; sh: 5,568; makefile: 836; perl: 745; awk: 381; sed: 16
file content (28 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#compdef dhclient dhclient3

local args

if _pick_variant three=V3 two --help; then
  args=(
    '-q[quiet]'
    '-1[only try once to get a lease]'
    '-r[release the current lease]'
    '-lf[lease file]:lease file:_files'
    '-pf[pid file]:pid file:_files'
    '-cf[config file]:config file:_files'
    '-sf[script file]:script file:_files'
    '-e[env vars to pass to child processes]:env var key value pairs:'
    '-s[transmit to specific target instead of broadcast]:server:_hosts'
    '-g[force giaddr field]:relay:_hosts'
    '-n[do not configure any interfaces]'
    '-nw[daemonize immediately rather than wait for IP acquisition]'
    '-w[do not exit if there are no interfaces found to configure]'
  )
else
  args=( '-e[exit if configuration failed after a certain time]' )
fi

_arguments $args \
  '-p[port to transmit to / listen on]:_ports' \
  '-d[force to run in foreground]' \
  ':interface:_net_interfaces'