Commit 0b0300cf authored by tamal's avatar tamal

Add go flags to go-to-protobuf

parent 54295026
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment