Merge pull request #3480 from jbeda/all_pflag

Convert all main binaries to pflag library
This commit is contained in:
Joe Beda
2015-01-15 11:26:41 -08:00
46 changed files with 335 additions and 272 deletions

View File

@@ -20,7 +20,6 @@ package main
import (
"crypto/tls"
"flag"
"net"
"net/http"
"strconv"
@@ -40,6 +39,7 @@ import (
"github.com/coreos/go-etcd/etcd"
"github.com/golang/glog"
flag "github.com/spf13/pflag"
)
var (
@@ -124,7 +124,7 @@ func newEtcd(etcdConfigFile string, etcdServerList util.StringList) (helper tool
}
func main() {
flag.Parse()
util.InitFlags()
util.InitLogs()
defer util.FlushLogs()