diff --git a/README.md b/README.md index 0ff2072..2054a8a 100644 --- a/README.md +++ b/README.md @@ -137,12 +137,6 @@ To apply your Stack Policy file you have to type: ~ $ perun set-stack-policy ``` -or - -```bash -~ $ perun set-stack-policy --stack= --template= -``` - Perun has some default flags: - ``--block`` - Block all Update actions in stack. diff --git a/cliparser/cliparser.go b/cliparser/cliparser.go index 79e5ccd..dd024e2 100644 --- a/cliparser/cliparser.go +++ b/cliparser/cliparser.go @@ -20,10 +20,11 @@ package cliparser import ( "errors" + "time" + "github.com/Appliscale/perun/logger" "github.com/Appliscale/perun/utilities" "gopkg.in/alecthomas/kingpin.v2" - "time" ) var ValidateMode = "validate" @@ -157,7 +158,7 @@ func ParseCliArguments(args []string) (cliArguments CliArguments, err error) { setStackPolicy = app.Command(SetStackPolicyMode, "Set stack policy using JSON file.") setStackPolicyName = setStackPolicy.Arg("stack", "An AWS stack name.").Required().String() - setStackPolicyTemplate = setStackPolicy.Arg("template", "A path to the template file.").Required().String() + setStackPolicyTemplate = setStackPolicy.Arg("template", "A path to the template file.").String() setDefaultBlockingStackPolicy = setStackPolicy.Flag("block", "Blocking all actions.").Bool() setDefaultUnblockingStackPolicy = setStackPolicy.Flag("unblock", "Unblocking all actions.").Bool() setDisableStackTermination = setStackPolicy.Flag("disable-stack-termination", "Allow to delete a stack.").Bool()