mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2773 from yichengq/add-flag-help
tools/functional-testing: add help message for flags
This commit is contained in:
commit
0a6f481ca5
@ -20,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
etcdPath := flag.String("etcd-path", "/opt/etcd/bin/etcd", "")
|
||||
etcdPath := flag.String("etcd-path", "/opt/etcd/bin/etcd", "the path to etcd binary")
|
||||
flag.Parse()
|
||||
|
||||
a, err := newAgent(*etcdPath)
|
||||
|
@ -22,11 +22,11 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
endpointStr := flag.String("agent-endpoints", ":9027", "")
|
||||
datadir := flag.String("data-dir", "agent.etcd", "")
|
||||
stressKeySize := flag.Int("stress-key-size", 100, "stress-key-size is the size of each key written into etcd")
|
||||
stressKeySuffixRange := flag.Int("stress-key-count", 250000, "stress-key-count is the count of key range written into etcd")
|
||||
limit := flag.Int("limit", 3, "")
|
||||
endpointStr := flag.String("agent-endpoints", ":9027", "HTTP RPC endpoints of agents")
|
||||
datadir := flag.String("data-dir", "agent.etcd", "etcd data directory location on agent machine")
|
||||
stressKeySize := flag.Int("stress-key-size", 100, "the size of each key written into etcd")
|
||||
stressKeySuffixRange := flag.Int("stress-key-count", 250000, "the count of key range written into etcd")
|
||||
limit := flag.Int("limit", 3, "the limit of rounds to run failure set")
|
||||
flag.Parse()
|
||||
|
||||
endpoints := strings.Split(*endpointStr, ",")
|
||||
|
Loading…
x
Reference in New Issue
Block a user