From 0b0300cfe6887861745518a25646383936cccb79 Mon Sep 17 00:00:00 2001 From: tamal Date: Wed, 25 Oct 2017 17:24:35 -0700 Subject: [PATCH] Add go flags to go-to-protobuf --- staging/src/k8s.io/code-generator/cmd/go-to-protobuf/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/code-generator/cmd/go-to-protobuf/main.go b/staging/src/k8s.io/code-generator/cmd/go-to-protobuf/main.go index 8a72719390..ce1756c11a 100644 --- a/staging/src/k8s.io/code-generator/cmd/go-to-protobuf/main.go +++ b/staging/src/k8s.io/code-generator/cmd/go-to-protobuf/main.go @@ -19,15 +19,17 @@ limitations under the License. package main import ( - "k8s.io/code-generator/cmd/go-to-protobuf/protobuf" + goflag "flag" flag "github.com/spf13/pflag" + "k8s.io/code-generator/cmd/go-to-protobuf/protobuf" ) var g = protobuf.New() func init() { g.BindFlags(flag.CommandLine) + flag.CommandLine.AddGoFlagSet(goflag.CommandLine) } func main() {