From e71d43b58ef820d0694215f5468283ab4beda16d Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Tue, 28 Apr 2015 23:17:07 -0700 Subject: [PATCH] tools/functional-testing: add help message for flags Help users to understand what these flags are for. --- tools/functional-tester/etcd-agent/main.go | 2 +- tools/functional-tester/etcd-tester/main.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/functional-tester/etcd-agent/main.go b/tools/functional-tester/etcd-agent/main.go index 481f84bf6..2a1c53b76 100644 --- a/tools/functional-tester/etcd-agent/main.go +++ b/tools/functional-tester/etcd-agent/main.go @@ -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) diff --git a/tools/functional-tester/etcd-tester/main.go b/tools/functional-tester/etcd-tester/main.go index ec77cfe4b..41a3e568f 100644 --- a/tools/functional-tester/etcd-tester/main.go +++ b/tools/functional-tester/etcd-tester/main.go @@ -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, ",")