mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Add options --debug & --version
This commit is contained in:
@@ -229,7 +229,19 @@ local -a phydevs
|
|||||||
phy_devs=( \( $(iw list|grep '^[[:alnum:]]\+'|cut -f 2 -d ' ') \) )
|
phy_devs=( \( $(iw list|grep '^[[:alnum:]]\+'|cut -f 2 -d ' ') \) )
|
||||||
phy_cmds=( \( $matchany ":test:test:$phy_devs[*]" \) "$phy_cmds[@]" )
|
phy_cmds=( \( $matchany ":test:test:$phy_devs[*]" \) "$phy_cmds[@]" )
|
||||||
|
|
||||||
|
local -a cmdsdebug
|
||||||
|
_regex_words debug_commands "iw command" \
|
||||||
|
'd*ev:commands to control/list the software devices:$dev_cmds' \
|
||||||
|
'e*vent:monitor events from the kernel:$event_opts' \
|
||||||
|
'h*elp:print usage for each command' \
|
||||||
|
'l*ist:list all wireless devices and their capabilities' \
|
||||||
|
'p*hy:commands to control the physical device:$phy_cmds' \
|
||||||
|
'r*eg:get/set regulatory domain:$reg_cmds'
|
||||||
|
cmdsdebug+=("$reply[@]")
|
||||||
|
|
||||||
_regex_words commands "iw command" \
|
_regex_words commands "iw command" \
|
||||||
|
'--debug:enable netlink debugging:$cmdsdebug' \
|
||||||
|
'--version:show version (3.2)' \
|
||||||
'd*ev:commands to control/list the software devices:$dev_cmds' \
|
'd*ev:commands to control/list the software devices:$dev_cmds' \
|
||||||
'e*vent:monitor events from the kernel:$event_opts' \
|
'e*vent:monitor events from the kernel:$event_opts' \
|
||||||
'h*elp:print usage for each command' \
|
'h*elp:print usage for each command' \
|
||||||
|
|||||||
Reference in New Issue
Block a user