summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index 9f3719510..22bc6cdaf 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -855,9 +855,10 @@ impl CliFactory {
location: self.options.location_flag().clone(),
// if the user ran a binary command, we'll need to set process.argv[0]
// to be the name of the binary command instead of deno
- maybe_binary_npm_command_name: self
+ argv0: self
.options
- .take_binary_npm_command_name(),
+ .take_binary_npm_command_name()
+ .or(std::env::args().next()),
origin_data_folder_path: Some(self.deno_dir()?.origin_data_folder_path()),
seed: self.options.seed(),
unsafely_ignore_certificate_errors: self