github.com/ghodss/etcd@v0.3.1-0.20140417172404-cc329bfa55cb/server/usage.go (about) 1 package server 2 3 import ( 4 "strings" 5 ) 6 7 // usage defines the message shown when a help flag is passed to etcd. 8 var usage = ` 9 etcd 10 11 Usage: 12 etcd -name <name> 13 etcd -name <name> [-data-dir=<path>] 14 etcd -h | -help 15 etcd -version 16 17 Options: 18 -h -help Show this screen. 19 --version Show version. 20 -f -force Force a new configuration to be used. 21 -config=<path> Path to configuration file. 22 -name=<name> Name of this node in the etcd cluster. 23 -data-dir=<path> Path to the data directory. 24 -cors=<origins> Comma-separated list of CORS origins. 25 -v Enabled verbose logging. 26 -vv Enabled very verbose logging. 27 28 Cluster Configuration Options: 29 -discovery=<url> Discovery service used to find a peer list. 30 -peers-file=<path> Path to a file containing the peer list. 31 -peers=<host:port>,<host:port> Comma-separated list of peers. The members 32 should match the peer's '-peer-addr' flag. 33 34 Client Communication Options: 35 -addr=<host:port> The public host:port used for client communication. 36 -bind-addr=<host[:port]> The listening host:port used for client communication. 37 -ca-file=<path> Path to the client CA file. 38 -cert-file=<path> Path to the client cert file. 39 -key-file=<path> Path to the client key file. 40 41 Peer Communication Options: 42 -peer-addr=<host:port> The public host:port used for peer communication. 43 -peer-bind-addr=<host[:port]> The listening host:port used for peer communication. 44 -peer-ca-file=<path> Path to the peer CA file. 45 -peer-cert-file=<path> Path to the peer cert file. 46 -peer-key-file=<path> Path to the peer key file. 47 -peer-heartbeat-interval=<time> 48 Time (in milliseconds) of a heartbeat interval. 49 -peer-election-timeout=<time> 50 Time (in milliseconds) for an election to timeout. 51 52 Other Options: 53 -max-result-buffer Max size of the result buffer. 54 -max-retry-attempts Number of times a node will try to join a cluster. 55 -retry-interval Seconds to wait between cluster join retry attempts. 56 -max-cluster-size Maximum number of nodes in the cluster. 57 -snapshot=false Disable log snapshots 58 -snapshot-count Number of transactions before issuing a snapshot. 59 ` 60 61 // Usage returns the usage message for etcd. 62 func Usage() string { 63 return strings.TrimSpace(usage) 64 }