Fork me on GitHub
#tools-deps
<
2023-01-23
>
didibus18:01:52

clojure script.clj will say: > WARNING: Implicit use of clojure.main with options is deprecated, use -M Is that normal? I'm just running a script, I'm not trying to call a -main function? And I don't need to pass any alias.

borkdude19:01:38

@didibus Yes, this was introduced a while ago. clojure.main is the namespace that takes care of executing files, -e, -i etc. So you you always have to type -M and then the usual -m or -e , <file.clj> etc.

didibus21:01:26

I see, so you type -M and provide no other option: clojure -M script.clj Meh, another esoteric choice by the CLI 😛