From 5a88da1d3742e52c1cbc97b3a4615a06b7fb2c02 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sun, 11 Aug 2013 13:28:43 -0700 Subject: [PATCH] fix(etcd): add a default name etcd shouldn't require flags by default. --- etcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcd.go b/etcd.go index 11fc5751036..6f847a66d55 100644 --- a/etcd.go +++ b/etcd.go @@ -58,7 +58,7 @@ func init() { flag.StringVar(&machines, "C", "", "the ip address and port of a existing machines in the cluster, sepearate by comma") flag.StringVar(&machinesFile, "CF", "", "the file contains a list of existing machines in the cluster, seperate by comma") - flag.StringVar(&argInfo.Name, "n", "", "the node name (required)") + flag.StringVar(&argInfo.Name, "n", "default-name", "the node name (required)") flag.StringVar(&argInfo.EtcdURL, "c", "127.0.0.1:4001", "the hostname:port for etcd client communication") flag.StringVar(&argInfo.RaftURL, "s", "127.0.0.1:7001", "the hostname:port for raft server communication") flag.StringVar(&argInfo.WebURL, "w", "", "the hostname:port of web interface")