Closed awstlaur closed 6 years ago
One relatively common trick is to pass an argument of -
such that everything after that argument is destined for the program-being-run, while everything before it is destined for the running-environment. There might be a slight issue with cmdline.arr being unhappy about -
without any characters after it, I'm not sure...
I could always try special-casing the parsing logic for something like that.
Now that the great horizon->master merge is complete, is this still an issue?
When using the
--run
flag (or one ofphaseX
scripts), the"command-line-arguments"
parameter never gets set by load-lib, which can result in such cryptic errors as:I have a partial-fix on the back burner, but I'm trying to figure out a good/robust way to distinguish between the flags that are meant for
pyret.jarr
and the flags meant for the Pyret program to be run.