func InitCommandLineFlags(config config.Config) { config.IntVar(¶ms.iterations, "iterations", 1, "number of pushes to attempt") config.IntVar(¶ms.concurrency, "concurrency", 1, "max number of pushes to attempt in parallel") config.BoolVar(¶ms.silent, "silent", false, "true to run the commands and print output the terminal") config.StringVar(¶ms.output, "output", "", "if specified, writes benchmark results to a CSV file") config.StringVar(¶ms.workload, "workload", "gcf:push", "a comma-separated list of operations a user should issue (use -list-workloads to see available workload options)") config.IntVar(¶ms.interval, "interval", 0, "repeat a workload at n second interval, to be used with -stop") config.IntVar(¶ms.stop, "stop", 0, "stop a repeating interval after n second, to be used with -interval") config.BoolVar(¶ms.listWorkloads, "list-workloads", false, "Lists the available workloads") workloadList.DescribeParameters(config) store.DescribeParameters(config) }
func InitCommandLineFlags(config config.Config) { config.EnvVar(¶ms.port, "VCAP_APP_PORT", "8080", "The port to bind to") store.DescribeParameters(config) }