Clojurians
#lumo
<
2017-06-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

clj.max03:06:46

Really liking Lumo so far, rewriting some of my Ruby scripts in it

clj.max03:06:55

But I can't seem to get CMD line args to work

clj.max03:06:04

Any ideas? Should it work?

clj.max03:06:28

Seems like if I set a -main function it should receive the args, but it doesn't seem to get called :disappointed:

anmonteiro03:06:02

@clj.max the -main function is only executed if you pass the -m my-ns.core args

anmonteiro03:06:23

Where my-ns.core is a namespace in the classpath

clj.max03:06:56

do I need to require the arg binding somehow?

anmonteiro03:06:58

Otherwise you have lumo.core/*command-line-args*

anmonteiro03:06:21

Those will be set to whatever comes after your script

anmonteiro03:06:48

Example: lumo -c src myscript.cljs arg1 arg2

anmonteiro03:06:31

*command-line-args* will be set to '("arg1" "arg2")

clj.max03:06:42

ah, I didn't put the lumo.core

clj.max03:06:44

thanks :slightly_smiling_face:

dominicm08:06:20

@richiardiandrea eagerly awaiting experimentation with teavm on maven :wink: