func DescribeParameters(config config.Config) { config.StringVar(¶ms.csvDir, "csv-dir", "output/csvs", "Directory to Store CSVs") config.BoolVar(¶ms.useRedis, "use-redis", false, "True if redis should be used (requires the -redis-host, -redis-port and -redis-password arguments)") config.StringVar(¶ms.redisHost, "redis-host", "localhost", "Redis hostname") config.IntVar(¶ms.redisPort, "redis-port", 6379, "Redis port") config.StringVar(¶ms.redisPassword, "redis-password", "", "Redis password") config.EnvVar(¶ms.vcapServices, "VCAP_SERVICES", "", "The VCAP_SERVICES environment variable") }
func InitCommandLineFlags(config config.Config) { config.EnvVar(¶ms.port, "VCAP_APP_PORT", "8080", "The port to bind to") store.DescribeParameters(config) }