From 7fd4d9d5aabaa15d6bfed1881577a238f44605e4 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 3 Jul 2017 17:33:03 +0200 Subject: [PATCH] Improve bash completion for `service create|update --detach` bash completion usually completes boolean options that default to `true` with the `=false` suffix because that is the only syntax that really changes behavior. For this option, I implemented completion falsely. Signed-off-by: Harald Albers (cherry picked from commit fc0dafbbd11130ac24f8905f697b71e99f32d4e6) Signed-off-by: Sebastiaan van Stijn --- components/cli/contrib/completion/bash/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cli/contrib/completion/bash/docker b/components/cli/contrib/completion/bash/docker index d1fad7ad7c..b90abfd194 100644 --- a/components/cli/contrib/completion/bash/docker +++ b/components/cli/contrib/completion/bash/docker @@ -3237,7 +3237,7 @@ _docker_service_update_and_create() { " local boolean_options=" - --detach -d + --detach=false -d=false --help --no-healthcheck --read-only