From 3cebbc2d85daa402514eac867fe85f443e9f5e5d Mon Sep 17 00:00:00 2001 From: Nick Adcock Date: Mon, 2 Dec 2019 14:10:53 +0000 Subject: [PATCH] Add -f shorthand to app rm --force Makes -f the shorthand for --force in `docker app rm`, same as in `docker rm` and `docker app image rm` Signed-off-by: Nick Adcock --- internal/commands/remove.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/remove.go b/internal/commands/remove.go index cbdf343b4..834c2d877 100644 --- a/internal/commands/remove.go +++ b/internal/commands/remove.go @@ -36,7 +36,7 @@ func removeCmd(dockerCli command.Cli, installerContext *cliopts.InstallerContext }, } opts.credentialOptions.addFlags(cmd.Flags()) - cmd.Flags().BoolVar(&opts.force, "force", false, "Force the removal of a running App") + cmd.Flags().BoolVarP(&opts.force, "force", "f", false, "Force the removal of a running App") return cmd }