We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6089d3a commit 97f0dc1Copy full SHA for 97f0dc1
pkg/blobplugin/main.go
@@ -48,7 +48,10 @@ var (
48
)
49
50
func init() {
51
- driverOptions.AddFlags()
+ klog.InitFlags(nil)
52
+ driverOptions.AddFlags().VisitAll(func(f *flag.Flag) {
53
+ flag.CommandLine.Var(f.Value, f.Name, f.Usage)
54
+ })
55
}
56
57
// exit is a separate function to handle program termination
@@ -57,8 +60,6 @@ var exit = func(code int) {
60
58
61
59
62
func main() {
- klog.InitFlags(nil)
- _ = flag.Set("logtostderr", "true")
63
flag.Parse()
64
if *version {
65
info, err := blob.GetVersionYAML(driverOptions.DriverName)
0 commit comments