mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Add go flags to go-to-protobuf
This commit is contained in:
parent
54295026bf
commit
0b0300cfe6
@ -19,15 +19,17 @@ limitations under the License.
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"k8s.io/code-generator/cmd/go-to-protobuf/protobuf"
|
goflag "flag"
|
||||||
|
|
||||||
flag "github.com/spf13/pflag"
|
flag "github.com/spf13/pflag"
|
||||||
|
"k8s.io/code-generator/cmd/go-to-protobuf/protobuf"
|
||||||
)
|
)
|
||||||
|
|
||||||
var g = protobuf.New()
|
var g = protobuf.New()
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
g.BindFlags(flag.CommandLine)
|
g.BindFlags(flag.CommandLine)
|
||||||
|
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user