flag.StringVarP(&g.Common.GoHeaderFilePath,"go-header-file","h",g.Common.GoHeaderFilePath,"File containing boilerplate header text. The string YEAR will be replaced with the current 4-digit year.")
flag.BoolVar(&g.Common.VerifyOnly,"verify-only",g.Common.VerifyOnly,"If true, only verify existing output, do not write anything.")
flag.StringVarP(&g.Packages,"packages","p",g.Packages,"comma-separated list of directories to get input types from. Directories prefixed with '-' are not generated, directories prefixed with '+' only create types with explicit IDL instructions.")
flag.StringVar(&g.APIMachineryPackages,"apimachinery-packages",g.APIMachineryPackages,"comma-separated list of directories to get apimachinery input types from which are needed by any API. Directories prefixed with '-' are not generated, directories prefixed with '+' only create types with explicit IDL instructions.")
flag.StringVarP(&g.OutputBase,"output-base","o",g.OutputBase,"Output base; defaults to $GOPATH/src/")
flag.StringSliceVar(&g.ProtoImport,"proto-import",g.ProtoImport,"The search path for the core protobuf .protos, required, defaults to GODEPS on path.")
flag.StringVar(&g.VendorOutputBase,"vendor-output-base",g.VendorOutputBase,"The vendor/ directory to look for packages in; defaults to $PWD/vendor/.")
flag.StringSliceVar(&g.ProtoImport,"proto-import",g.ProtoImport,"The search path for the core protobuf .protos, required; defaults $GOPATH/src/k8s.io/kubernetes/vendor/github.com/gogo/protobuf/protobuf.")
flag.StringVar(&g.Conditional,"conditional",g.Conditional,"An optional Golang build tag condition to add to the generated Go code")
flag.BoolVar(&g.Clean,"clean",g.Clean,"If true, remove all generated files for the specified Packages.")
flag.BoolVar(&g.OnlyIDL,"only-idl",g.OnlyIDL,"If true, only generate the IDL for each package.")
...
...
@@ -146,13 +121,25 @@ func Run(g *Generator) {
boilerplate,err:=g.Common.LoadGoBoilerplate()
iferr!=nil{
log.Fatalf("Failed loading boilerplate: %v",err)
log.Fatalf("Failed loading boilerplate (consider using the go-header-file flag): %v",err)