I'd like to run
clojure -M -e "(compile 'foo.bar)" --some --args where
foo.bar contains some code like so:
(require (slurp (first *command-line-args*)))
Which will dynamically include the additional namespaces based on some complex list of namespaces or something, .
--some in the example above is "lost" and clojure.main tries to read that as a path, as there's no way to "skip" main-opts right now. I've been cheating by passing in
/dev/null which seems to work. Traditionally something like
-- is used to solve this problem.
I had a poke at the source for clojure.main, and it does seem there's a "nil" option, but it's not documented and I can't figure out how to activate it!