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 8a727193901..ce1756c11a6 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() {