From ac43a157997bbc4471e56f8ab5cb98fdadc14bd3 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 Upstream-commit: f1dd721b6978f1c24bb2761b88c83d9e385bd781 Component: engine --- components/engine/cli/command/stack/opts.go | 2 +- components/engine/docs/reference/commandline/stack_deploy.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/cli/command/stack/opts.go b/components/engine/cli/command/stack/opts.go index 440d6099e3..74fe4f5343 100644 --- a/components/engine/cli/command/stack/opts.go +++ b/components/engine/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/components/engine/docs/reference/commandline/stack_deploy.md b/components/engine/docs/reference/commandline/stack_deploy.md index eb7f005e95..54af3e4a59 100644 --- a/components/engine/docs/reference/commandline/stack_deploy.md +++ b/components/engine/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 ```