Use pflag only

This commit is contained in:
bzub 2017-07-12 22:49:15 -05:00
parent 510d18cdb6
commit dd7cd65cd4

View File

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