mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Terraform workspace returns nonzero exit code when given an invalid arg
This commit is contained in:
parent
126e493818
commit
598e341712
@ -15,14 +15,7 @@ type WorkspaceCommand struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *WorkspaceCommand) Run(args []string) int {
|
func (c *WorkspaceCommand) Run(args []string) int {
|
||||||
c.Meta.process(args)
|
return cli.RunResultHelp
|
||||||
envCommandShowWarning(c.Ui, c.LegacyName)
|
|
||||||
|
|
||||||
cmdFlags := c.Meta.extendedFlagSet("workspace")
|
|
||||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
|
||||||
|
|
||||||
c.Ui.Output(c.Help())
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *WorkspaceCommand) Help() string {
|
func (c *WorkspaceCommand) Help() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user