Skip to content

Commit

Permalink
Enhance help message
Browse files Browse the repository at this point in the history
Signed-off-by: Ling Samuel <[email protected]>
  • Loading branch information
lingsamuel committed Jan 13, 2021
1 parent 8813e73 commit 1f7d571
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/minikube/cmd/config/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var (
)

func init() {
addonsEnableCmd.Flags().StringVar(&images, "images", "", "Images used by this addon. Divided by comma.")
addonsEnableCmd.Flags().StringVar(&registries, "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(&registries, "registries", "", "Registries used by this addon. Separated by commas.")
AddonsCmd.AddCommand(addonsEnableCmd)
}
6 changes: 3 additions & 3 deletions pkg/minikube/assets/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions site/content/en/docs/commands/addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f7d571

Please sign in to comment.