mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-18 21:31:04 +02:00
Use pflag only
This commit is contained in:
parent
510d18cdb6
commit
dd7cd65cd4
@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
@ -16,7 +15,7 @@ func main() {
|
|||||||
config.AddFlags(pflag.CommandLine)
|
config.AddFlags(pflag.CommandLine)
|
||||||
pflag.Parse()
|
pflag.Parse()
|
||||||
|
|
||||||
flag.Set("logtostderr", "true")
|
pflag.Set("logtostderr", "true")
|
||||||
|
|
||||||
if config.HelpRequested {
|
if config.HelpRequested {
|
||||||
pflag.Usage()
|
pflag.Usage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user