Browse Source

zsh autocomplete: add missing 'remove-orphans' flag for 'up' and 'down'

Signed-off-by: Andre Eriksson <[email protected]>
Andre Eriksson 9 years ago
parent
commit
73a1b60ced
1 changed files with 3 additions and 1 deletions
  1. 3 1
      contrib/completion/zsh/_docker-compose

+ 3 - 1
contrib/completion/zsh/_docker-compose

@@ -207,7 +207,8 @@ __docker-compose_subcommand() {
             _arguments \
                 $opts_help \
                 "--rmi[Remove images, type may be one of: 'all' to remove all images, or 'local' to remove only images that don't have an custom name set by the 'image' field]:type:(all local)" \
-                '(-v --volumes)'{-v,--volumes}"[Remove data volumes]" && ret=0
+                '(-v --volumes)'{-v,--volumes}"[Remove data volumes]" \
+                '--remove-orphans[Remove containers for services not defined in the Compose file]' && ret=0
             ;;
         (events)
             _arguments \
@@ -329,6 +330,7 @@ __docker-compose_subcommand() {
                 "--no-build[Don't build an image, even if it's missing]" \
                 "(-d)--abort-on-container-exit[Stops all containers if any container was stopped. Incompatible with -d.]" \
                 '(-t --timeout)'{-t,--timeout}"[Specify a shutdown timeout in seconds. (default: 10)]:seconds: " \
+                "--remove-orphans[Remove containers for services not defined in the Compose file]" \
                 '*:services:__docker-compose_services_all' && ret=0
             ;;
         (version)