about summary refs log tree commit diff
path: root/Completion/Linux
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-09-18 15:53:29 +0200
committerOliver Kiddle <opk@zsh.org>2017-09-18 15:53:29 +0200
commitb138acf42e52dcdf470f5001aa7ffa1e70eb60f3 (patch)
tree8b8b52c41e0c86c1b7e2b7497bf354aaec518f5d /Completion/Linux
parentb0c12e377151adced916e517e9354e9e4469a637 (diff)
downloadzsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.gz
zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.tar.xz
zsh-b138acf42e52dcdf470f5001aa7ffa1e70eb60f3.zip
41725: assorted minor updates to completion functions
Diffstat (limited to 'Completion/Linux')
-rw-r--r--Completion/Linux/Command/_mii-tool7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Linux/Command/_mii-tool b/Completion/Linux/Command/_mii-tool
index 8da6da69d..72c47a479 100644
--- a/Completion/Linux/Command/_mii-tool
+++ b/Completion/Linux/Command/_mii-tool
@@ -1,12 +1,13 @@
 #compdef mii-tool
 
-_arguments -s \
-  '(-V --version)'{-V,--version}'[display version information]' \
+_arguments -s -S \
+  '(- *)'{-V,--version}'[display version information]' \
   '(-v --verbose)'{-v,--verbose}'[verbose output]' \
   '(-R --reset)'{-R,--reset}'[reset MII to poweron state]' \
   '(-r --restart)'{-r,--restart}'[restart autonegotiation]' \
   '(-w --watch)'{-w,--watch}'[monitor for link status changes]' \
   '(-l --log)'{-l,--log}'[write events to syslog]' \
-  '(-A --advertise)'{-A,--advertise=}'[advertise only specified media]:medium:_values -s , medium 100baseT4 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD 100baseTx 10baseT' \
+  '(-A --advertise)'{-A,--advertise=}'[advertise only specified media]:medium:_values -s , medium 1000baseTx-HD 1000baseTx-FD 100baseT4 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD 1000baseTx 100baseTx 10baseT' \
   '(-F --force)'{-F,--force=}'[force specified medium]:medium:(100baseT4 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD 100baseTx 10baseT)' \
+  '(-p --phy)'{-p,--phy=}'[set PHY (MII address) to report]:MII address' \
   '*:interface:_net_interfaces'