From 28e1c85c3b2c2b884318fa4a62bc4446463f263f Mon Sep 17 00:00:00 2001 From: Harald Albers <github@albersweb.de> Date: Fri, 25 Aug 2017 09:42:37 +0200 Subject: [PATCH] Add bash completion for `--no-ansi` Signed-off-by: Harald Albers <github@albersweb.de> --- contrib/completion/bash/docker-compose | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/completion/bash/docker-compose b/contrib/completion/bash/docker-compose index d283a041a..33c2e2e53 100644 --- a/contrib/completion/bash/docker-compose +++ b/contrib/completion/bash/docker-compose @@ -179,7 +179,7 @@ _docker_compose_docker_compose() { case "$cur" in -*) - COMPREPLY=( $( compgen -W "$top_level_boolean_options $top_level_options_with_args --help -h --verbose --version -v" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "$top_level_boolean_options $top_level_options_with_args --help -h --no-ansi --verbose --version -v" -- "$cur" ) ) ;; *) COMPREPLY=( $( compgen -W "${commands[*]}" -- "$cur" ) ) @@ -569,8 +569,10 @@ _docker_compose() { version ) - # options for the docker daemon that have to be passed to secondary calls to - # docker-compose executed by this script + # Options for the docker daemon that have to be passed to secondary calls to + # docker-compose executed by this script. + # Other global otions that are not relevant for secondary calls are defined in + # `_docker_compose_docker_compose`. local top_level_boolean_options=" --skip-hostname-check --tls