diff --git a/v.v b/v.v index 8e3d1ece44..b99c9cfe8e 100755 --- a/v.v +++ b/v.v @@ -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. diff --git a/vlib/compiler/main.v b/vlib/compiler/main.v index 6bda2ec280..e57a714d69 100644 --- a/vlib/compiler/main.v +++ b/vlib/compiler/main.v @@ -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 {