From 5b6ddd5e30e0b73154c8492ab84832afc15a0b87 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 20 Mar 2017 16:27:56 +0100 Subject: [PATCH] Fix bash completion for `up --exit-code-from` `--exit-code-from` requires an argument. Also corrected sort order. Signed-off-by: Harald Albers --- contrib/completion/bash/docker-compose | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker-compose b/contrib/completion/bash/docker-compose index b1d0a393b..20588522c 100644 --- a/contrib/completion/bash/docker-compose +++ b/contrib/completion/bash/docker-compose @@ -498,6 +498,10 @@ _docker_compose_unpause() { _docker_compose_up() { case "$prev" in + --exit-code-from) + __docker_compose_services_all + return + ;; --timeout|-t) return ;; @@ -505,7 +509,7 @@ _docker_compose_up() { case "$cur" in -*) - COMPREPLY=( $( compgen -W "--exit-code-from --abort-on-container-exit --build -d --force-recreate --help --no-build --no-color --no-deps --no-recreate --timeout -t --remove-orphans" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--abort-on-container-exit --build -d --exit-code-from --force-recreate --help --no-build --no-color --no-deps --no-recreate --timeout -t --remove-orphans" -- "$cur" ) ) ;; *) __docker_compose_services_all