diff options
Diffstat (limited to 'cli/args')
-rw-r--r-- | cli/args/flags.rs | 1 | ||||
-rw-r--r-- | cli/args/mod.rs | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 82a536e47..9b0f840e9 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -398,6 +398,7 @@ pub struct Flags { pub config_flag: ConfigFlag, pub node_modules_dir: Option<bool>, pub vendor: Option<bool>, + pub enable_op_summary_metrics: bool, pub enable_testing_features: bool, pub ext: Option<String>, pub ignore: Vec<PathBuf>, diff --git a/cli/args/mod.rs b/cli/args/mod.rs index fa8d94de5..4acbb1763 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1137,6 +1137,14 @@ impl CliOptions { } } + pub fn enable_op_summary_metrics(&self) -> bool { + self.flags.enable_op_summary_metrics + || matches!( + self.flags.subcommand, + DenoSubcommand::Test(_) | DenoSubcommand::Repl(_) + ) + } + pub fn enable_testing_features(&self) -> bool { self.flags.enable_testing_features } |