3f299cc560
There were three related problems: 1) The first argument was always parsed with read-string, even when defaulting to the :main namespace. This caused non-numeric first arguments to throw: Exception in thread "main" java.lang.Exception: Unable to resolve symbol: foo in this context Avoid read-string entirely and update the unit tests to use an unreadable string instead of a number to make the problem obvious. This problem was reported by Marek Kubica on the Clojure mailing list. 2) When using an alias the alias keyword was passed to -main as the first argument. This is inconsistent with how the -m and :main simply pass the program arguments, not the namespace or -m flag. 3) There was no way to pass "-m" or a string beginning with ":" as a first argument to the run program. Added "--" as an option to escape these. |
||
---|---|---|
.. | ||
test_compile.clj | ||
test_core.clj | ||
test_deps.clj | ||
test_help.clj | ||
test_install.clj | ||
test_jar.clj | ||
test_javac.clj | ||
test_new.clj | ||
test_plugin.clj | ||
test_pom.clj | ||
test_run.clj | ||
test_test.clj | ||
test_uberjar.clj |