1
0
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:
Delyan Angelov 2023-04-03 05:07:12 +03:00
parent de34e15df7
commit 88de0decf6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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)
} }