Add go flags to go-to-protobuf

pull/6/head
tamal 2017-10-25 17:24:35 -07:00
parent 54295026bf
commit 0b0300cfe6
1 changed files with 3 additions and 1 deletions

View File

@ -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() {