File: 02-modify-cli-usage.patch

package info (click to toggle)
clojure 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,320 kB
  • sloc: java: 41,010; xml: 601; sh: 96; makefile: 28
file content (29 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: Simplify the usage instructions for the command line tool
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/src/clj/clojure/main.clj
+++ b/src/clj/clojure/main.clj
@@ -367,7 +367,7 @@
   [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...")
+clojure -i init.clj -r args...")
   (let [[inits [sep & args]] (split-with (complement #{"--"}) args)]
     (repl-opt (concat ["-r"] args) (map vector (repeat "-i") inits))))
 
@@ -377,12 +377,12 @@
   [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...")
+clojure -i init.clj script.clj args...")
   (let [[inits [sep & args]] (split-with (complement #{"--"}) args)]
     (null-opt args (map vector (repeat "-i") inits))))
 
 (defn main
-  "Usage: java -cp clojure.jar clojure.main [init-opt*] [main-opt] [arg*]
+  "Usage: clojure [init-opt*] [main-opt] [arg*]
 
   With no options or args, runs an interactive Read-Eval-Print Loop