Builds the command tree for help and suite listing.
()
| 38 | |
| 39 | /// Builds the command tree for help and suite listing. |
| 40 | pub fn build_cli() -> Command { |
| 41 | Command::new("benchmark_runner") |
| 42 | .about("Inspect DataFusion SQL benchmark suites.") |
| 43 | .styles(HELP_STYLES) |
| 44 | .subcommand_required(false) |
| 45 | .arg_required_else_help(false) |
| 46 | .disable_help_subcommand(true) |
| 47 | .subcommand(Command::new("help").about("Print help")) |
| 48 | .subcommand(Command::new("list").about("List SQL benchmark suites")) |
| 49 | } |
| 50 | |
| 51 | /// Converts clap matches into a typed command. |
| 52 | pub(crate) fn command_from_matches(matches: &ArgMatches) -> Result<RunnerCommand> { |
searching dependent graphs…