mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-12 09:01:58 -06:00
Update internal/command/workspace_select.go
Co-authored-by: James Bardin <j.bardin@gmail.com>
This commit is contained in:
parent
11da5afb5e
commit
8881418c99
@ -20,7 +20,7 @@ func (c *WorkspaceSelectCommand) Run(args []string) int {
|
||||
|
||||
var orCreate bool
|
||||
cmdFlags := c.Meta.defaultFlagSet("workspace select")
|
||||
cmdFlags.BoolVar(&orCreate, "or-create", false, "create workspace if it doesnt exist")
|
||||
cmdFlags.BoolVar(&orCreate, "or-create", false, "create workspace if it does not exist")
|
||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := cmdFlags.Parse(args); err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Error parsing command-line flags: %s\n", err.Error()))
|
||||
|
Loading…
Reference in New Issue
Block a user