summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/main.rs2
-rw-r--r--tests/version.out3
-rw-r--r--tests/version.test2
3 files changed, 6 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 8bef2d2ff..a864c2db3 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -300,7 +300,7 @@ fn main() {
DenoSubcommand::Repl => run_repl(flags, argv),
DenoSubcommand::Run => run_script(flags, argv),
DenoSubcommand::Types => types_command(),
- DenoSubcommand::Version => run_script(flags, argv),
+ DenoSubcommand::Version => run_repl(flags, argv),
DenoSubcommand::Xeval => xeval_command(flags, argv),
}
}
diff --git a/tests/version.out b/tests/version.out
new file mode 100644
index 000000000..de13d769f
--- /dev/null
+++ b/tests/version.out
@@ -0,0 +1,3 @@
+deno:[WILDCARD]
+v8:[WILDCARD]
+typescript:[WILDCARD] \ No newline at end of file
diff --git a/tests/version.test b/tests/version.test
new file mode 100644
index 000000000..24079f715
--- /dev/null
+++ b/tests/version.test
@@ -0,0 +1,2 @@
+args: version
+output: tests/version.out