diff --git a/crates/turborepo-lib/src/cli/mod.rs b/crates/turborepo-lib/src/cli/mod.rs index 3d6e057849b24..6b6ed2531bace 100644 --- a/crates/turborepo-lib/src/cli/mod.rs +++ b/crates/turborepo-lib/src/cli/mod.rs @@ -495,10 +495,10 @@ impl Args { /// Fetch the execution args supplied to the command pub fn execution_args(&self) -> Option<&ExecutionArgs> { - if let Some(Command::Run { execution_args, .. }) = &self.command { - Some(execution_args) - } else { - self.execution_args.as_ref() + match &self.command { + Some(Command::Run { execution_args, .. }) => Some(execution_args), + Some(Command::Watch { execution_args, .. }) => Some(execution_args), + _ => self.execution_args.as_ref(), } }