diff --git a/cli/command/stack/opts.go b/cli/command/stack/opts.go index 440d6099e3..74fe4f5343 100644 --- a/cli/command/stack/opts.go +++ b/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) { diff --git a/docs/reference/commandline/stack_deploy.md b/docs/reference/commandline/stack_deploy.md index eb7f005e95..54af3e4a59 100644 --- a/docs/reference/commandline/stack_deploy.md +++ b/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 ```