diff --git a/command/apply.go b/command/apply.go index e772a8e016..76dea35b8c 100644 --- a/command/apply.go +++ b/command/apply.go @@ -47,7 +47,7 @@ func (c *ApplyCommand) Run(args []string) int { cmdFlags.StringVar(&c.Meta.statePath, "state", "", "path") cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path") cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path") - cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state") + cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state") cmdFlags.Usage = func() { c.Ui.Error(c.Help()) } if err := cmdFlags.Parse(args); err != nil { return 1 @@ -274,7 +274,7 @@ Options: modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup. - -lock-state=true Lock the state file when locking is supported. + -lock=true Lock the state file when locking is supported. -input=true Ask for input for variables if not directly set. @@ -323,7 +323,7 @@ Options: -force Don't ask for input for destroy confirmation. - -lock-state=true Lock the state file when locking is supported. + -lock=true Lock the state file when locking is supported. -no-color If specified, output won't contain any color. diff --git a/command/plan.go b/command/plan.go index 485202e2a7..5b89634ed9 100644 --- a/command/plan.go +++ b/command/plan.go @@ -31,7 +31,7 @@ func (c *PlanCommand) Run(args []string) int { &c.Meta.parallelism, "parallelism", DefaultParallelism, "parallelism") cmdFlags.StringVar(&c.Meta.statePath, "state", "", "path") cmdFlags.BoolVar(&detailed, "detailed-exitcode", false, "detailed-exitcode") - cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state") + cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state") cmdFlags.Usage = func() { c.Ui.Error(c.Help()) } if err := cmdFlags.Parse(args); err != nil { return 1 @@ -143,7 +143,7 @@ Options: -input=true Ask for input for variables if not directly set. - -lock-state=true Lock the state file when locking is supported. + -lock=true Lock the state file when locking is supported. -module-depth=n Specifies the depth of modules to show in the output. This does not affect the plan itself, only the output diff --git a/command/refresh.go b/command/refresh.go index decc3a968e..c9c5527b91 100644 --- a/command/refresh.go +++ b/command/refresh.go @@ -23,7 +23,7 @@ func (c *RefreshCommand) Run(args []string) int { cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", 0, "parallelism") cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path") cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path") - cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state") + cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state") cmdFlags.Usage = func() { c.Ui.Error(c.Help()) } if err := cmdFlags.Parse(args); err != nil { return 1 @@ -96,7 +96,7 @@ Options: -input=true Ask for input for variables if not directly set. - -lock-state=true Lock the state file when locking is supported. + -lock=true Lock the state file when locking is supported. -no-color If specified, output won't contain any color. diff --git a/command/taint.go b/command/taint.go index 6cacdd398d..7900fee9af 100644 --- a/command/taint.go +++ b/command/taint.go @@ -26,7 +26,7 @@ func (c *TaintCommand) Run(args []string) int { cmdFlags.StringVar(&c.Meta.statePath, "state", DefaultStateFilename, "path") cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path") cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path") - cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state") + cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state") cmdFlags.Usage = func() { c.Ui.Error(c.Help()) } if err := cmdFlags.Parse(args); err != nil { return 1 @@ -177,7 +177,7 @@ Options: modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup. - -lock-state=true Lock the state file when locking is supported. + -lock=true Lock the state file when locking is supported. -module=path The module path where the resource lives. By default this will be root. Child modules can be specified diff --git a/command/untaint.go b/command/untaint.go index ca3050c732..88c5d35cf8 100644 --- a/command/untaint.go +++ b/command/untaint.go @@ -25,7 +25,7 @@ func (c *UntaintCommand) Run(args []string) int { cmdFlags.StringVar(&c.Meta.statePath, "state", DefaultStateFilename, "path") cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path") cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path") - cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state") + cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state") cmdFlags.Usage = func() { c.Ui.Error(c.Help()) } if err := cmdFlags.Parse(args); err != nil { return 1 @@ -165,7 +165,7 @@ Options: modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup. - -lock-state=true Lock the state file when locking is supported. + -lock=true Lock the state file when locking is supported. -module=path The module path where the resource lives. By default this will be root. Child modules can be specified