diff --git a/src/agent/onefuzz-agent/src/local/common.rs b/src/agent/onefuzz-agent/src/local/common.rs index 8ddf416e8..221e67087 100644 --- a/src/agent/onefuzz-agent/src/local/common.rs +++ b/src/agent/onefuzz-agent/src/local/common.rs @@ -143,8 +143,9 @@ pub fn get_synced_dirs( args: &ArgMatches<'_>, ) -> Result> { let current_dir = std::env::current_dir()?; - let dirs: Result> = value_t!(args, name, PathBuf)? - .iter() + let dirs: Result> = args + .values_of_os(name) + .ok_or_else(|| anyhow!("argument '{}' not specified", name))? .enumerate() .map(|(index, remote_path)| { let path = PathBuf::from(remote_path); @@ -261,7 +262,7 @@ pub async fn wait_for_dir(path: impl AsRef) -> Result<()> { Ok(()) } else { Err(BackoffError::Transient(anyhow::anyhow!( - "path '{:?}' does not exisit", + "path '{:?}' does not exist", path.as_ref() ))) }