Merge pull request #54594 from tamalsaha/log-o

Automatic merge from submit-queue (batch tested with PRs 54081, 54271, 51783, 54600, 54594). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add go flags to go-to-protobuf

Reopened from code-generator repo.

cc: @sttts
pull/6/head
Kubernetes Submit Queue 2017-10-26 02:43:55 -07:00 committed by GitHub
commit 58fd063a6c
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() {