Browse Source

Add completion for `scale --timeout`

Signed-off-by: Harald Albers <[email protected]>
Harald Albers 10 years ago
parent
commit
b03a2f7910
1 changed files with 4 additions and 1 deletions
  1. 4 1
      contrib/completion/bash/docker-compose

+ 4 - 1
contrib/completion/bash/docker-compose

@@ -280,11 +280,14 @@ _docker_compose_scale() {
 			COMPREPLY=("$cur")
 			return
 			;;
+		--timeout|-t)
+			return
+			;;
 	esac
 
 	case "$cur" in
 		-*)
-			COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
+			COMPREPLY=( $( compgen -W "--help --timeout -t" -- "$cur" ) )
 			;;
 		*)
 			COMPREPLY=( $(compgen -S "=" -W "$(___docker_compose_all_services_in_compose_file)" -- "$cur") )