mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.pref: allow passing file names to v scripts, that use -raw-vsh-tmp-prefix, without showing a Too many targets
error message.
This commit is contained in:
parent
de34e15df7
commit
88de0decf6
@ -811,7 +811,7 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
} else if is_source_file(command) && is_source_file(arg)
|
} else if is_source_file(command) && is_source_file(arg)
|
||||||
&& command !in known_external_commands {
|
&& command !in known_external_commands && res.raw_vsh_tmp_prefix == '' {
|
||||||
eprintln('Too many targets. Specify just one target: <target.v|target_directory>.')
|
eprintln('Too many targets. Specify just one target: <target.v|target_directory>.')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user