diff --git a/cli/src/main.rs b/cli/src/main.rs index 01b1879..eb3d301 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -415,6 +415,7 @@ fn main() { // Launch headed browser or configure browser options (without CDP or provider) if (flags.headed + || flags.executable_path.is_some() || flags.profile.is_some() || flags.state.is_some() || flags.proxy.is_some() @@ -434,6 +435,11 @@ fn main() { .as_object_mut() .expect("json! macro guarantees object type"); + // Add executable path if specified + if let Some(ref exec_path) = flags.executable_path { + cmd_obj.insert("executablePath".to_string(), json!(exec_path)); + } + // Add profile path if specified if let Some(ref profile_path) = flags.profile { cmd_obj.insert("profile".to_string(), json!(profile_path));