Merge pull request #950 from Likio3000/codex/preserve-exports-on-invalid-options

Preserve export files when command options are invalid
This commit is contained in:
David Peter authored and GitHub committed 2026-10-05 11:30:58 +02:00
commit d3d67fc908
2 files changed
+45 -2

No files matched your search

+2 -2
View File
@@ -37,14 +37,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()?;