neonious/lowjs

Passing arguments to the script

jirutka opened this issue · 4 comments

low does not allow to pass arguments to the script.

$ ./bin/low script.js --help
Syntax: ./bin/low [file.js]

The same for ./bin/low -- --help.

You are right... This should be changed.
With the new commit 9eb7dde low behaves just like node and also implements process.argv, process.argv0 and process.execPath.
New downloads should be available in a few hours.

Oh, that’s great, thank you a lot! 😸 I’ve just started reading lowjs’s source code and thinking how to implement this and you already did it! 👍

Some tasks are just fun..

But, if you want to contribute anywhere else, that would be great for the project.

I’ve just tried it and it works fine! 👍