From 4b230af83f98489bf7e0f3b7616d0a6b77edb671 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 24 Nov 2016 16:11:38 -0500 Subject: [PATCH] Add a short flag for docker stack deploy Signed-off-by: Daniel Nephin (cherry picked from commit f1dd721b6978f1c24bb2761b88c83d9e385bd781) Signed-off-by: Victor Vieux --- cli/command/stack/opts.go | 2 +- docs/reference/commandline/stack_deploy.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ```