From 224f23149ed433de99060947aa4eef7be44dcc6d Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 27 Jun 2017 11:52:06 +0200 Subject: [PATCH] Add bash completion for `service create|update --entrypoint` Also fixes a wrong option: `--arg` should be `--args`. Signed-off-by: Harald Albers (cherry picked from commit e0462e8472af1f0835104651e062b35756901d59) Signed-off-by: Andrew Hsu --- components/cli/contrib/completion/bash/docker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/cli/contrib/completion/bash/docker b/components/cli/contrib/completion/bash/docker index 459cae999c..2884fa162b 100644 --- a/components/cli/contrib/completion/bash/docker +++ b/components/cli/contrib/completion/bash/docker @@ -3039,6 +3039,7 @@ _docker_service_update() { _docker_service_update_and_create() { local options_with_args=" --endpoint-mode + --entrypoint --env -e --force --health-cmd @@ -3138,7 +3139,7 @@ _docker_service_update_and_create() { fi if [ "$subcommand" = "update" ] ; then options_with_args="$options_with_args - --arg + --args --constraint-add --constraint-rm --container-label-add