From e61e81eb57351782862aa50775ce4348f10b1856 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 7 Jan 2021 18:06:08 +0000 Subject: feat: add --location= and globalThis.location (#7369) --- cli/tools/installer.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/tools') diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index f6eb33112..e04763172 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -202,6 +202,10 @@ pub fn install( let mut executable_args = vec!["run".to_string()]; executable_args.extend_from_slice(&flags.to_permission_args()); + if let Some(url) = flags.location.as_ref() { + executable_args.push("--location".to_string()); + executable_args.push(url.to_string()); + } if let Some(ca_file) = flags.ca_file { executable_args.push("--cert".to_string()); executable_args.push(ca_file) -- cgit v1.2.3