etcdctlv3: support endpoint flag

This commit is contained in:
Xiang Li
2015-09-12 22:46:43 -07:00
parent 1de63deca4
commit 121d2b9e9d
5 changed files with 7 additions and 4 deletions

View File

@ -44,7 +44,7 @@ func deleteRangeCommandFunc(c *cli.Context) {
if len(c.Args()) > 1 {
rangeEnd = []byte(c.Args()[1])
}
conn, err := grpc.Dial("127.0.0.1:12379")
conn, err := grpc.Dial(c.GlobalString("endpoint"))
if err != nil {
panic(err)
}