This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-22
Channels
- # bangalore-clj (6)
- # beginners (110)
- # boot (49)
- # cider (13)
- # cljs-dev (35)
- # cljsrn (5)
- # clojure (145)
- # clojure-conj (3)
- # clojure-dev (60)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-russia (3)
- # clojure-serbia (1)
- # clojure-spec (116)
- # clojure-uk (58)
- # clojurescript (235)
- # cursive (14)
- # datascript (7)
- # datomic (31)
- # dirac (144)
- # emacs (1)
- # events (1)
- # hoplon (12)
- # leiningen (11)
- # luminus (60)
- # lumo (19)
- # off-topic (18)
- # om (74)
- # onyx (5)
- # pedestal (13)
- # precept (3)
- # re-frame (3)
- # reagent (15)
- # remote-jobs (7)
- # ring-swagger (25)
- # rum (1)
- # untangled (53)
- # vim (3)
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
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")
@richiardiandrea eagerly awaiting experimentation with teavm on maven 馃槈