Fix subcommands descriptions (#3977)

This commit is contained in:
LepilkinaElena
2020-03-13 10:02:41 +03:00
committed by GitHub
parent 4b4bbdd02c
commit b42fd5592d
2 changed files with 2 additions and 2 deletions
@@ -133,7 +133,7 @@ class BaseBenchmarkArguments(argParser: ArgParser): BenchmarkArguments(argParser
object BenchmarksRunner { object BenchmarksRunner {
fun parse(args: Array<String>, benchmarksListAction: ()->Unit): BenchmarkArguments? { fun parse(args: Array<String>, benchmarksListAction: ()->Unit): BenchmarkArguments? {
class List: Subcommand("list") { class List: Subcommand("list", "Show list of benchmarks") {
override fun execute() { override fun execute() {
benchmarksListAction() benchmarksListAction()
} }
@@ -129,7 +129,7 @@ fun mergeReportsWithDetailedFlags(reports: List<BenchmarksReport>) =
} }
fun main(args: Array<String>) { fun main(args: Array<String>) {
class Summary: Subcommand("summary") { class Summary: Subcommand("summary", "Output summary information") {
val exec by option(ArgType.Choice(listOf("samples", "geomean")), val exec by option(ArgType.Choice(listOf("samples", "geomean")),
description = "Execution time way of calculation").default("geomean") description = "Execution time way of calculation").default("geomean")
val execSamples by option(ArgType.String, "exec-samples", val execSamples by option(ArgType.String, "exec-samples",