我试图按照这里的指南运行简单的 Clojure 程序:https://www.clojure.org/guides/deps_and_cli
我的目录结构如下
└── test-project
├── deps.edn
└── src
└── bar.clj
和bar.clj
看起来像这样
(ns bar)
(defn main []
(printl "hello world"))
但我运行clj -X bar/main
时,遇到了以下错误
Exception in thread "main" java.io.FileNotFoundException: -X (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at clojure.lang.Compiler.loadFile(Compiler.java:7570)
at clojure.main$load_script.invokeStatic(main.clj:452)
at clojure.main$script_opt.invokeStatic(main.clj:512)
at clojure.main$script_opt.invoke(main.clj:507)
at clojure.main$main.invokeStatic(main.clj:598)
at clojure.main$main.doInvoke(main.clj:561)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.main.main(main.java:37)
我错在哪里了?