ianxm / ihx

The interactive haXe shell
http://github.com/ianxm/ihx
Other
79 stars 10 forks source link

First argument is ignored on Windows #22

Closed NQNStudios closed 4 years ago

NQNStudios commented 4 years ago

On Windows running with Haxe 4, the first argument is dropped. If the first argument is followed by an input value, that input value will not be recognized as an argument, and IHx will not start.

Examples: haxelib run ihx -lib ihx neko run.n -lib ihx Will both trigger the error.

I'm guessing in older Haxe versions, Sys.args() would come with an extra value on Windows? Here is the line of code causing the error, I assume it is there for a reason that doesn't need to be anymore.

ianxm commented 4 years ago

thanks for reporting. yeah, windows used to need that. I haven't used windows in a long time. if you send a PR I'll take it. I don't want to just take it out and push without being able to test.