-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters