Hi
Really liking Lumo so far, rewriting some of my Ruby scripts in it
But I can't seem to get CMD line args to work
Any ideas? Should it work?
Seems like if I set a -main function it should receive the args, but it doesn't seem to get called 😞
@clj.max got tripped too, there is a binding: https://github.com/anmonteiro/lumo/blob/4bcb33601e66ea4d6920f8834410deddefab97c1/src/cljs/snapshot/lumo/core.cljs#L12
@clj.max the -main
function is only executed if you pass the -m my-ns.core
args
Where my-ns.core
is a namespace in the classpath
ah
do I need to require the arg binding somehow?
Otherwise you have lumo.core/*command-line-args*
Those will be set to whatever comes after your script
Example: lumo -c src myscript.cljs arg1 arg2
*command-line-args*
will be set to '("arg1" "arg2")
ah, I didn't put the lumo.core
that's it
thanks 🙂
Np!
@richiardiandrea eagerly awaiting experimentation with teavm on maven 😉