bash completion for `docker network create --internal, --ipam-opt`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-01-18 07:50:26 -08:00 committed by Tibor Vass
parent 6d32fd8763
commit 09809fe27e
1 changed files with 2 additions and 2 deletions

View File

@ -1170,7 +1170,7 @@ _docker_network_connect() {
_docker_network_create() {
case "$prev" in
--aux-address|--gateway|--ip-range|--opt|-o|--subnet)
--aux-address|--gateway|--ip-range|--ipam-opt|--opt|-o|--subnet)
return
;;
--ipam-driver)
@ -1189,7 +1189,7 @@ _docker_network_create() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--aux-address --driver -d --gateway --help --ip-range --ipam-driver --opt -o --subnet" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--aux-address --driver -d --gateway --help --internal --ip-range --ipam-driver --ipam-opt --opt -o --subnet" -- "$cur" ) )
;;
esac
}