Too many targets
when running v script (.vsh
) file
#19473
Labels
Bug
This tag is applied to issues which reports bugs.
Describe the bug
When running a
vsh
file where one of the options is a file I get:if I just build:
And then run:
It runs fine.
Since v script files are intended to run similarly to shell scripts and shell scripts often accept files as options, I think this was unintentional.
Reproduction Steps
Expected Behavior
v
to build and run the script withfilename.txt
as the value of--opt
Current Behavior
Produces
Too many targets. Specify just one target: <target.v|target_directory>.
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.1 137cb09.1476daf
Environment details (OS name and version, etc.)
V full version: V 0.4.1 137cb09.1476daf
OS: macos, macOS, 13.4.1, 22F770820d
Processor: 16 cpus, 64bit, little endian, Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
CC version: Apple clang version 12.0.5 (clang-1205.0.22.9)
thirdparty/tcc status: thirdparty-macos-amd64 46662e2
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: