From 22e12065c1d711a996cf4146761d178b699580a0 Mon Sep 17 00:00:00 2001 From: Gerred Dillon Date: Wed, 10 Jul 2019 15:53:30 -0400 Subject: [PATCH] Change version StringVar to StringVarP --- pkg/kudoctl/cmd/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kudoctl/cmd/install.go b/pkg/kudoctl/cmd/install.go index 393a8be3a..66ec7a60d 100644 --- a/pkg/kudoctl/cmd/install.go +++ b/pkg/kudoctl/cmd/install.go @@ -99,7 +99,7 @@ func newInstallCmd() *cobra.Command { installCmd.Flags().StringVar(&options.InstanceName, "instance", "", "The instance name. (default to Operator name)") installCmd.Flags().StringVar(&options.Namespace, "namespace", "default", "The namespace used for the package installation. (default \"default\"") installCmd.Flags().StringArrayVarP(¶meters, "parameter", "p", nil, "The parameter name and value separated by '='") - installCmd.Flags().StringVar(&options.PackageVersion, "version", "v", "A specific package version on the official GitHub repo. (default to the most recent)") + installCmd.Flags().StringVarP(&options.PackageVersion, "version", "v", "", "A specific package version on the official GitHub repo. (default to the most recent)") installCmd.Flags().BoolVar(&options.SkipInstance, "skip-instance", false, "If set, install will install the Operator and OperatorVersion, but not an instance. (default \"false\")") const usageFmt = "Usage:\n %s\n\nFlags:\n%s"