bash completion: minor refactoring for consistency

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2015-10-16 11:31:31 +02:00 committed by Tibor Vass
parent 0ef21aeab2
commit 9d4969150a
1 changed files with 4 additions and 4 deletions

View File

@ -1343,7 +1343,7 @@ _docker_run() {
--workdir -w --workdir -w
" "
local all_options="$options_with_args local boolean_options="
--disable-content-trust=false --disable-content-trust=false
--help --help
--interactive -i --interactive -i
@ -1354,14 +1354,14 @@ _docker_run() {
--tty -t --tty -t
" "
local all_options="$options_with_args $boolean_options"
[ "$command" = "run" ] && all_options="$all_options [ "$command" = "run" ] && all_options="$all_options
--detach -d --detach -d
--rm --rm
--sig-proxy=false --sig-proxy=false
" "
local options_with_args_glob=$(__docker_to_extglob "$options_with_args")
case "$prev" in case "$prev" in
--add-host) --add-host)
case "$cur" in case "$cur" in
@ -1486,7 +1486,7 @@ _docker_run() {
__docker_containers_all __docker_containers_all
return return
;; ;;
$options_with_args_glob ) $(__docker_to_extglob "$options_with_args") )
return return
;; ;;
esac esac