fix: pass --executable-path to launch command in CLI (#424)

This commit is contained in:
Chris Tate
2026-02-12 13:28:25 -06:00
committed by GitHub
parent 03a8cb95d0
commit ec9c6a2ed9
+6
View File
@@ -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));