diff options
-rw-r--r-- | src/clj/clojure/main.clj | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clj/clojure/main.clj b/src/clj/clojure/main.clj index 5f480a60..6f08c6f0 100644 --- a/src/clj/clojure/main.clj +++ b/src/clj/clojure/main.clj @@ -291,6 +291,9 @@ "Called by the clojure.lang.Repl.main stub to run a repl with args specified the old way" [args] + (println "WARNING: clojure.lang.Repl is deprecated. +Instead, use clojure.main like this: +java -cp clojure.jar clojure.main -i init.clj -r args...") (let [[inits [sep & args]] (split-with (complement #{"--"}) args)] (repl-opt (concat ["-r"] args) (map vector (repeat "-i") inits)))) @@ -298,6 +301,9 @@ "Called by the clojure.lang.Script.main stub to run a script with args specified the old way" [args] + (println "WARNING: clojure.lang.Script is deprecated. +Instead, use clojure.main like this: +java -cp clojure.jar clojure.main -i init.clj script.clj args...") (let [[inits [sep & args]] (split-with (complement #{"--"}) args)] (null-opt args (map vector (repeat "-i") inits)))) |