From 44319f36550099313ef04490b1a91a70f6b5f1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Tue, 23 Jul 2019 20:40:51 -0400 Subject: [PATCH] Change --prune flag shorthand to -r --- CHANGELOG.md | 2 +- cmd/stackDeploy.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c37062..8d2f5d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `-e, --env-file` flag sets the environment variables file to use. - `--replace-env` flag causes environment variables to be replaced instead of merged while updating a stack. - `--endpoint` flag sets the endpoint to use. - - `-p, --prune` flag causes services that are no longer referenced to be removed. + - `-r, --prune` flag causes services that are no longer referenced to be removed. - `stack remove|rm|down` command to remove a stack. - `--strict` flag causes a failure if the stack does not exist. - `status` command to show Portainer status as a table. diff --git a/cmd/stackDeploy.go b/cmd/stackDeploy.go index d3d5b05..464a257 100644 --- a/cmd/stackDeploy.go +++ b/cmd/stackDeploy.go @@ -110,7 +110,7 @@ func init() { stackDeployCmd.Flags().String("endpoint", "1", "endpoint ID") stackDeployCmd.Flags().StringP("env-file", "e", "", "path to a file with environment variables used during stack deployment") stackDeployCmd.Flags().Bool("replace-env", false, "replace environment variables instead of merging them") - stackDeployCmd.Flags().BoolP("prune", "p", false, "prune services that are no longer referenced (only available for Swarm stacks)") + stackDeployCmd.Flags().BoolP("prune", "r", false, "prune services that are no longer referenced (only available for Swarm stacks)") viper.BindPFlag("stack.deploy.stack-file", stackDeployCmd.Flags().Lookup("stack-file")) viper.BindPFlag("stack.deploy.endpoint", stackDeployCmd.Flags().Lookup("endpoint")) viper.BindPFlag("stack.deploy.env-file", stackDeployCmd.Flags().Lookup("env-file"))