From 755906c7846df8dc1bd28fc7b26c90ff5041b9ab Mon Sep 17 00:00:00 2001 From: Sunil Date: Wed, 17 Aug 2022 11:41:57 +0200 Subject: [PATCH] Update controller-gen CLI documentation for paths argument Add paths description on how to specify multiple paths. --- pkg/genall/options.go | 2 ++ pkg/genall/zz_generated.markerhelp.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/genall/options.go b/pkg/genall/options.go index 45e3bc41f..836b1617e 100644 --- a/pkg/genall/options.go +++ b/pkg/genall/options.go @@ -30,6 +30,8 @@ var ( // +controllertools:marker:generateHelp:category="" // InputPaths represents paths and go-style path patterns to use as package roots. +// +// Multiple paths can be specified using "{path1, path2, path3}". type InputPaths []string // RegisterOptionsMarkers registers "mandatory" options markers for FromOptions into the given registry. diff --git a/pkg/genall/zz_generated.markerhelp.go b/pkg/genall/zz_generated.markerhelp.go index cc9ae7b80..6428f0ce2 100644 --- a/pkg/genall/zz_generated.markerhelp.go +++ b/pkg/genall/zz_generated.markerhelp.go @@ -29,8 +29,8 @@ func (InputPaths) Help() *markers.DefinitionHelp { return &markers.DefinitionHelp{ Category: "", DetailedHelp: markers.DetailedHelp{ - Summary: "represents paths and go-style path patterns to use as package roots.", - Details: "", + Summary: "represents paths and go-style path patterns to use as package roots. ", + Details: "Multiple paths can be specified using \"{path1, path2, path3}\".", }, FieldHelp: map[string]markers.DetailedHelp{}, }