Fork me on GitHub

Is the WARNING: When invoking clojure.main, use -M warning supposed to be printed even when executing just clj -e 1?


Or when I'm running my own -main, like in clj -m my.proj.

Alex Miller (Clojure team)01:01:13

-M (now) means "run clojure.main" so should be used with -m or -e or calling a script.clj etc


Ah, I see. I thought it was only for aliases but now I can see that the list of aliases is optional. And I didn't realize that clojure.main is called even when I specify -m. Thanks!


Hello this is super basic question. I create simple command line program which i would like to execute. I used as a reference but i have a problem. i have `deps.edn` , `src/data.clj` that has fn `foo`, and when i do `clj -X data/foo` i get this error

Execution error (FileNotFoundException) at (
-X (No such file or directory)
Full report at:...
what am i doing wrong?


@lepistane Probably a too old version of clj


another basic question :S how do i remove clojure cli from my machine?


this worked! i just repeated installation steps thanks!!


@lepistane I've found it helpful to use brew to manage my Clojure CLI install even on Linux, so that I can choose to install a specific version and also make it easy to keep the CLI up-to-date.

👍 3