Browse code

Add a short flag for docker stack deploy

Signed-off-by: Daniel Nephin <dnephin@docker.com>
(cherry picked from commit f1dd721b6978f1c24bb2761b88c83d9e385bd781)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>

Daniel Nephin authored on 2016/11/25 06:11:38
Showing 2 changed files
... ...
@@ -10,7 +10,7 @@ import (
10 10
 )
11 11
 
12 12
 func addComposefileFlag(opt *string, flags *pflag.FlagSet) {
13
-	flags.StringVar(opt, "compose-file", "", "Path to a Compose file")
13
+	flags.StringVarP(opt, "compose-file", "c", "", "Path to a Compose file")
14 14
 }
15 15
 
16 16
 func addBundlefileFlag(opt *string, flags *pflag.FlagSet) {
... ...
@@ -25,7 +25,7 @@ Aliases:
25 25
 
26 26
 Options:
27 27
       --bundle-file string    Path to a Distributed Application Bundle file
28
-      --compose-file string   Path to a Compose file
28
+  -c, --compose-file string   Path to a Compose file
29 29
       --help                  Print usage
30 30
       --with-registry-auth    Send registry authentication details to Swarm agents
31 31
 ```