summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index e21e4954a..4cbbb7cf5 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -328,8 +328,8 @@ fn resolve_shim_data(
executable_args.push("--cached-only".to_string());
}
- if flags.prompt {
- executable_args.push("--prompt".to_string());
+ if flags.no_prompt {
+ executable_args.push("--no-prompt".to_string());
}
if !flags.v8_flags.is_empty() {
@@ -714,7 +714,7 @@ mod tests {
fn install_prompt() {
let shim_data = resolve_shim_data(
&Flags {
- prompt: true,
+ no_prompt: true,
..Flags::default()
},
&InstallFlags {
@@ -729,7 +729,7 @@ mod tests {
assert_eq!(
shim_data.args,
- vec!["run", "--prompt", "http://localhost:4545/echo_server.ts",]
+ vec!["run", "--no-prompt", "http://localhost:4545/echo_server.ts",]
);
}