Passing arguments to the script
jirutka opened this issue · 4 comments
jirutka commented
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
.
ThomasRogg commented
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.
jirutka commented
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! 👍
ThomasRogg commented
Some tasks are just fun..
But, if you want to contribute anywhere else, that would be great for the project.
jirutka commented
I’ve just tried it and it works fine! 👍