Skip to content

Commit

Permalink
v.pref: allow passing file names to v scripts, that use -raw-vsh-tmp-…
Browse files Browse the repository at this point in the history
…prefix, without showing a `Too many targets` error message.
  • Loading branch information
spytheman committed Apr 3, 2023
1 parent de34e15 commit 88de0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/pref/pref.v
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
break
}
} 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>.')
exit(1)
}
Expand Down

0 comments on commit 88de0de

Please sign in to comment.