Pārlūkot izejas kodu

Add a short flag for docker stack deploy

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Daniel Nephin 8 gadi atpakaļ
vecāks
revīzija
f1dd721b69

+ 1 - 1
cli/command/stack/opts.go

@@ -10,7 +10,7 @@ import (
 )
 
 func addComposefileFlag(opt *string, flags *pflag.FlagSet) {
-	flags.StringVar(opt, "compose-file", "", "Path to a Compose file")
+	flags.StringVarP(opt, "compose-file", "c", "", "Path to a Compose file")
 }
 
 func addBundlefileFlag(opt *string, flags *pflag.FlagSet) {

+ 1 - 1
docs/reference/commandline/stack_deploy.md

@@ -25,7 +25,7 @@ Aliases:
 
 Options:
       --bundle-file string    Path to a Distributed Application Bundle file
-      --compose-file string   Path to a Compose file
+  -c, --compose-file string   Path to a Compose file
       --help                  Print usage
       --with-registry-auth    Send registry authentication details to Swarm agents
 ```