From 1f7d571bad53634b27a320b1606dd854b6bc6b99 Mon Sep 17 00:00:00 2001 From: Ling Samuel Date: Wed, 13 Jan 2021 12:15:33 +0800 Subject: [PATCH] Enhance help message Signed-off-by: Ling Samuel --- cmd/minikube/cmd/config/enable.go | 4 ++-- pkg/minikube/assets/addons.go | 6 +++--- site/content/en/docs/commands/addons.md | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/minikube/cmd/config/enable.go b/cmd/minikube/cmd/config/enable.go index f79a07ab4c49..14a833cd1434 100644 --- a/cmd/minikube/cmd/config/enable.go +++ b/cmd/minikube/cmd/config/enable.go @@ -74,7 +74,7 @@ var ( ) func init() { - addonsEnableCmd.Flags().StringVar(&images, "images", "", "Images used by this addon. Divided by comma.") - addonsEnableCmd.Flags().StringVar(®istries, "registries", "", "Registries used by this addon. Divided by comma.") + addonsEnableCmd.Flags().StringVar(&images, "images", "", "Images used by this addon. Separated by commas.") + addonsEnableCmd.Flags().StringVar(®istries, "registries", "", "Registries used by this addon. Separated by commas.") AddonsCmd.AddCommand(addonsEnableCmd) } diff --git a/pkg/minikube/assets/addons.go b/pkg/minikube/assets/addons.go index f97d4f133d1c..a0aae9248626 100644 --- a/pkg/minikube/assets/addons.go +++ b/pkg/minikube/assets/addons.go @@ -615,7 +615,7 @@ func GenerateTemplateData(addon *Addon, cfg config.KubernetesConfig) interface{} CustomIngressCert string Images map[string]string Registries map[string]string - CustomRegistries map[string]string + CustomRegistries map[string]string }{ Arch: a, ExoticArch: ea, @@ -625,10 +625,10 @@ func GenerateTemplateData(addon *Addon, cfg config.KubernetesConfig) interface{} CustomIngressCert: cfg.CustomIngressCert, Images: addon.Images, Registries: addon.Registries, - CustomRegistries: make(map[string]string), + CustomRegistries: make(map[string]string), } if opts.ImageRepository != "" && !strings.HasSuffix(opts.ImageRepository, "/") { - opts.ImageRepository = opts.ImageRepository + "/" + opts.ImageRepository += "/" } if opts.Images == nil { diff --git a/site/content/en/docs/commands/addons.md b/site/content/en/docs/commands/addons.md index 4d0d44f4cd94..8a0164741f27 100644 --- a/site/content/en/docs/commands/addons.md +++ b/site/content/en/docs/commands/addons.md @@ -125,8 +125,8 @@ minikube addons enable dashboard ### Options ``` - --images string Images used by this addon. Divided by comma. - --registries string Registries used by this addon. Divided by comma. + --images string Images used by this addon. Separated by commas. + --registries string Registries used by this addon. Separated by commas. ``` ### Options inherited from parent commands