1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix repl_test.v

This commit is contained in:
Alexander Medvednikov 2019-12-15 05:51:00 +03:00
parent 68357876ca
commit 54b0097cee
2 changed files with 1 additions and 3 deletions

2
v.v
View File

@ -35,7 +35,7 @@ fn main() {
return
}
// v run, v doc, etc
if !command.starts_with('-') && !os.exists(command) {
if !command.starts_with('-') && !command.ends_with('.v') && !os.exists(command) {
v_command(command, args)
}
// Print the version and exit.

View File

@ -570,7 +570,6 @@ pub fn final_target_out_name(out_name string) string {
}
pub fn (v V) run_compiled_executable_and_exit() {
println('RUNNING')
args := env_vflags_and_os_args()
if v.pref.is_verbose {
println('============ running $v.out_name ============')
@ -586,7 +585,6 @@ pub fn (v V) run_compiled_executable_and_exit() {
break
}
}
println(args_after)
cmd += args_after
if v.pref.is_test {