From 5fa5eb1da6996ea9cb0249d098ebdf3eb1452b46 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 15 Nov 2018 13:43:58 +0100 Subject: [PATCH] Fix bash completion for `service update --force` - `--force` is not available in `service create` - `--force` is a boolean option Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 897be6f979..de98cd2d82 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3395,7 +3395,6 @@ _docker_service_update_and_create() { local options_with_args=" --endpoint-mode --entrypoint - --force --health-cmd --health-interval --health-retries @@ -3521,6 +3520,10 @@ _docker_service_update_and_create() { --secret-rm " + boolean_options="$boolean_options + --force + " + case "$prev" in --env-rm) COMPREPLY=( $( compgen -e -- "$cur" ) )