If possible, I'd like to do this both from the command line ("java -
cp ...") and from within slime / emacs.
Thanks,
Mike
(defn main
"Usage: java -cp clojure.jar clojure.main [init-opt*] [main-opt]
[arg*]
With no options or args, runs an interactive Read-Eval-Print Loop
init options:
-i, --init path Load a file or resource
-e, --eval string Evaluate expressions in string; print non-nil
values
...[snip]....
- Runs all init options in order
- Runs a repl or script if requested
The init options may be repeated and mixed freely, but must appear
before
any main option. The appearance of any eval option before running a
repl
suppresses the usual repl greeting message: \"Clojure ~(clojure-
version)\".
"
Caveat: I haven't actually tried this.
-tom