Skip to content

Commit 2403fe7

Browse files
committed
Merge pull request #92 from philips/add-default-name
fix(etcd): add a default name
2 parents af202c7 + 5a88da1 commit 2403fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etcd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func init() {
5858
flag.StringVar(&machines, "C", "", "the ip address and port of a existing machines in the cluster, sepearate by comma")
5959
flag.StringVar(&machinesFile, "CF", "", "the file contains a list of existing machines in the cluster, seperate by comma")
6060

61-
flag.StringVar(&argInfo.Name, "n", "", "the node name (required)")
61+
flag.StringVar(&argInfo.Name, "n", "default-name", "the node name (required)")
6262
flag.StringVar(&argInfo.EtcdURL, "c", "127.0.0.1:4001", "the hostname:port for etcd client communication")
6363
flag.StringVar(&argInfo.RaftURL, "s", "127.0.0.1:7001", "the hostname:port for raft server communication")
6464
flag.StringVar(&argInfo.WebURL, "w", "", "the hostname:port of web interface")

0 commit comments

Comments
 (0)