diff options
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 3f3f53d18..ebe71c7fa 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -6,6 +6,7 @@ mod lockfile; mod flags_allow_net; +pub use config_file::BenchConfig; pub use config_file::CompilerOptions; pub use config_file::ConfigFile; pub use config_file::EmitConfigOptions; @@ -401,6 +402,14 @@ impl CliOptions { } } + pub fn to_bench_config(&self) -> Result<Option<BenchConfig>, AnyError> { + if let Some(config_file) = &self.maybe_config_file { + config_file.to_bench_config() + } else { + Ok(None) + } + } + pub fn to_fmt_config(&self) -> Result<Option<FmtConfig>, AnyError> { if let Some(config) = &self.maybe_config_file { config.to_fmt_config() |