Address code review comments

Add some documentation.
Create new util.InitFlags() function to merge and parse in one step.
This commit is contained in:
Joe Beda
2015-01-14 14:59:55 -08:00
parent 1d0b6ee5f5
commit 6bd6b905f5
10 changed files with 36 additions and 17 deletions

View File

@@ -53,7 +53,6 @@ import (
"github.com/coreos/go-etcd/etcd"
"github.com/golang/glog"
flag "github.com/spf13/pflag"
)
var (
@@ -563,8 +562,7 @@ func runServiceTest(client *client.Client) {
type testFunc func(*client.Client)
func main() {
util.AddAllFlagsToPFlags()
flag.Parse()
util.InitFlags()
runtime.GOMAXPROCS(runtime.NumCPU())
util.ReallyCrash = true
util.InitLogs()