From a3756fd1b8e8dc80efa1f08ec3130f467c72aac4 Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Tue, 8 May 2007 03:45:15 +0000 Subject: Merge of workers/{21523,21524,21526}. --- Completion/Unix/Command/_dhclient | 28 ++++++++++++++++++++++++++++ Completion/Unix/Command/_pump | 24 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 Completion/Unix/Command/_dhclient create mode 100644 Completion/Unix/Command/_pump diff --git a/Completion/Unix/Command/_dhclient b/Completion/Unix/Command/_dhclient new file mode 100644 index 000000000..dafe299d9 --- /dev/null +++ b/Completion/Unix/Command/_dhclient @@ -0,0 +1,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' diff --git a/Completion/Unix/Command/_pump b/Completion/Unix/Command/_pump new file mode 100644 index 000000000..08ec026ed --- /dev/null +++ b/Completion/Unix/Command/_pump @@ -0,0 +1,24 @@ +#compdef pump + +_arguments \ + '(-c --config-file=)'{-c,--config-file=}'[specify configuration file to use]:configuration file:_files' \ + '(-h --hostname=)'{-h,--hostname=}'[specify hostname to request]:hostname:_hosts' \ + '(-i --interface=)'{-i,--interface=}'[specify interface to configure]:interface:_net_interfaces' \ + '(-k --kill)'{-k,--kill}'[kill daemon (and disable all interfaces)]' \ + '(-l --lease=)'{-l,--lease=}'[specify lease time to request]:time (hours)' \ + '(-L --leasesecs=)'{-L,--leasesecs=}'[specify seconds to request for]:time (seconds)]' \ + '(-r --release)'{-r,--release}'[release interface]:interface:_net_interfaces' \ + '(-R --renew)'{-R,--renew}'[force immediate lease renewal]:interface:_net_interfaces' \ + '(-v --verbose)'{-v,--verbose}'[log verbose debug info]' \ + '(-s --status)'{-s,--status}'[display interface status]:interface:_net_interfaces' \ + '(-d --no-dns)'{-d,--no-dns}"[don't update resolv.conf]" \ + '(- *)'{-?,--help}'[display help information]' \ + "--no-gateway[don't set a gateway for this interface]" \ + "--no-setup[don't set up anything]" \ + "--no-resolvconf[don't set up resolvconf]" \ + '--no-bootp[ignore non-DHCP BOOTP responses]' \ + '--lookup-hostname[force lookup of hostname]' \ + '--script=[specify script to use]:script:_files' \ + "--win-client-ident[set the client identifier to match window's]" \ + '--usage[display brief usage message]' \ + ':interface:_net_interfaces' -- cgit 1.4.1