fixes: https://github.com/prometheus/tsdb/issues/426
Using `filepath.Join()` instead of strings containing forward slash path delimiters (needed for non-*nix OSes), as suggested by @krasi-georgiev
cli=kingpin.New(filepath.Base(os.Args[0]),"CLI tool for tsdb")
cli=kingpin.New(filepath.Base(os.Args[0]),"CLI tool for tsdb")
benchCmd=cli.Command("bench","run benchmarks")
benchCmd=cli.Command("bench","run benchmarks")
benchWriteCmd=benchCmd.Command("write","run a write performance benchmark")
benchWriteCmd=benchCmd.Command("write","run a write performance benchmark")
benchWriteOutPath=benchWriteCmd.Flag("out","set the output path").Default("benchout/").String()
benchWriteOutPath=benchWriteCmd.Flag("out","set the output path").Default("benchout").String()
benchWriteNumMetrics=benchWriteCmd.Flag("metrics","number of metrics to read").Default("10000").Int()
benchWriteNumMetrics=benchWriteCmd.Flag("metrics","number of metrics to read").Default("10000").Int()
benchSamplesFile=benchWriteCmd.Arg("file","input file with samples data, default is (../../testdata/20kseries.json)").Default("../../testdata/20kseries.json").String()
benchSamplesFile=benchWriteCmd.Arg("file","input file with samples data, default is ("+filepath.Join("..","testdata","20kseries.json")+")").Default(filepath.Join("..","testdata","20kseries.json")).String()
listCmd=cli.Command("ls","list db blocks")
listCmd=cli.Command("ls","list db blocks")
listCmdHumanReadable=listCmd.Flag("human-readable","print human readable values").Short('h').Bool()
listCmdHumanReadable=listCmd.Flag("human-readable","print human readable values").Short('h').Bool()
listPath=listCmd.Arg("db path","database path (default is benchout/storage)").Default("benchout/storage").String()
listPath=listCmd.Arg("db path","database path (default is "+filepath.Join("benchout","storage")+")").Default(filepath.Join("benchout","storage")).String()