|
|
@@ -16,6 +16,7 @@ package cmd
|
|
|
|
|
|
import (
|
|
|
"sync"
|
|
|
+ "time"
|
|
|
|
|
|
"github.com/coreos/etcd/pkg/transport"
|
|
|
|
|
|
@@ -49,6 +50,8 @@ var (
|
|
|
memProfPath string
|
|
|
|
|
|
user string
|
|
|
+
|
|
|
+ dialTimeout time.Duration
|
|
|
)
|
|
|
|
|
|
func init() {
|
|
|
@@ -63,4 +66,5 @@ func init() {
|
|
|
RootCmd.PersistentFlags().StringVar(&tls.CAFile, "cacert", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
|
|
|
|
|
RootCmd.PersistentFlags().StringVar(&user, "user", "", "specify username and password in username:password format")
|
|
|
+ RootCmd.PersistentFlags().DurationVar(&dialTimeout, "dial-timeout", 0, "dial timeout for client connections")
|
|
|
}
|