From: Steve Durrheimer <s.durrheimer@gmail.com>
Date: Tue, 2 Jun 2015 12:38:23 +0200
Subject: Support version command in zsh completion

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
---
 contrib/completion/zsh/_docker-compose | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/completion/zsh/_docker-compose b/contrib/completion/zsh/_docker-compose
index 31052e1..19c0667 100644
--- a/contrib/completion/zsh/_docker-compose
+++ b/contrib/completion/zsh/_docker-compose
@@ -243,6 +243,10 @@ __docker-compose_subcommand () {
                 "--x-smart-recreate[Only recreate containers whose configuration or image needs to be updated. (EXPERIMENTAL)]" \
                 '*:services:__docker-compose_services_all' && ret=0
             ;;
+        (version)
+            _arguments \
+                "--short[Shows only Compose's version number.]" && ret=0
+            ;;
         (*)
             _message 'Unknown sub command'
     esac
