Skip to content

Commit

Permalink
Rename "product" short option to -t
Browse files Browse the repository at this point in the history
This is to represent producT or Tool.
This avoids possible common naming for 'quiet'

Issue #315

Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
  • Loading branch information
MatthewJohn and yermulnik committed May 28, 2024
1 parent 147fd93 commit 9ab0409
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 @@ -59,7 +59,7 @@ func GetParameters() 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", 'q', 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 Terraform. 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 9ab0409

Please sign in to comment.