Preserve export files when command options are invalid

This commit is contained in:
Eric Soler committed 2026-10-03 15:09:02 +00:00
1 parent 0f7ae35626
commit e2717c064e
2 files changed
+45 -2

No files matched your search

+2 -2
View File
@@ -36,14 +36,14 @@ fn run() -> Result<()> {
let cli_arguments = get_cli_arguments(env::args_os());
let mut options = Options::from_cli_arguments(&cli_arguments)?;
let commands = Commands::from_cli_arguments(&cli_arguments)?;
options.validate_against_command_list(&commands)?;
let export_manager = ExportManager::from_cli_arguments(
&cli_arguments,
options.time_unit,
options.sort_order_exports,
)?;
options.validate_against_command_list(&commands)?;
let mut scheduler = Scheduler::new(&commands, &options, &export_manager);
scheduler.run_benchmarks()?;
scheduler.print_relative_speed_comparison()?;