summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_dhclient
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-08-01 16:26:28 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-08-01 16:26:28 +0000
commitce743b792006c38a92108ea824eeaad37f333143 (patch)
treef167561e46ee67d61d000c4d9adec0e9d9c5431c /Completion/Unix/Command/_dhclient
parentfb81e044f1baf0b8c6befdc837f7b9835936ac87 (diff)
downloadzsh-ce743b792006c38a92108ea824eeaad37f333143.tar.gz
zsh-ce743b792006c38a92108ea824eeaad37f333143.zip
various cleanups: fix indentation and capitalisation of descriptions
Diffstat (limited to 'Completion/Unix/Command/_dhclient')
-rw-r--r--Completion/Unix/Command/_dhclient47
1 files changed, 22 insertions, 25 deletions
diff --git a/Completion/Unix/Command/_dhclient b/Completion/Unix/Command/_dhclient
index 5208ea05b..dafe299d9 100644
--- a/Completion/Unix/Command/_dhclient
+++ b/Completion/Unix/Command/_dhclient
@@ -1,31 +1,28 @@
#compdef dhclient dhclient3
-local _dhclient_common_args
-
-_dhclient_common_args=(
- '-p[port to transmit to / listen on]:_ports'
- '-d[force to run in foreground]'
- ':interface:_net_interfaces'
-)
+local args
if _pick_variant three=V3 two --help; then
- _arguments \
- '-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]' \
- "$_dhclient_common_args[@]"
+ 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
- _arguments \
- '-e[Exit if configuration failed after a certain time]' \
- "$_dhclient_common_args[@]"
+ 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'