Skip to content

Commit

Permalink
Fix usage for product as passing opentofu to --product does not insta…
Browse files Browse the repository at this point in the history
…ll Terraform
  • Loading branch information
MatthewJohn committed Jun 12, 2024
1 parent 6cbcd3e commit ec9186f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/param_parsing/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func populateParams(params Params) Params {
getopt.BoolVarLong(&params.ShowLatestFlag, "show-latest", 'U', "Show latest stable version")
getopt.StringVarLong(&params.ShowLatestPre, "show-latest-pre", 'P', "Show latest pre-release implicit version. Ex: tfswitch --show-latest-pre 0.13 prints 0.13.0-rc1 (latest)")
getopt.StringVarLong(&params.ShowLatestStable, "show-latest-stable", 'S', "Show latest implicit version. Ex: tfswitch --show-latest-stable 0.13 prints 0.13.7 (latest)")
getopt.StringVarLong(&params.Product, "product", 't', fmt.Sprintf("Specifies which product to use. Ex: `tfswitch --product opentofu` will install Terraform. Options: (%s). Default: %s", strings.Join(productIds, ", "), lib.DefaultProductId))
getopt.StringVarLong(&params.Product, "product", 't', fmt.Sprintf("Specifies which product to use. Ex: `tfswitch --product opentofu` will install OpenTofu. Options: (%s). Default: %s", strings.Join(productIds, ", "), lib.DefaultProductId))
getopt.BoolVarLong(&params.VersionFlag, "version", 'v', "Displays the version of tfswitch")

// Parse the command line parameters to fetch stuff like chdir
Expand Down

0 comments on commit ec9186f

Please sign in to comment.