what is the equivalent java command line call to something like clojure -X some.package/proc :arg 123, e.g. something like java -cp $(clojure -Spath) clojure.main <something>? a stacktrace led back to clojure.main/main, I'm just haven't dug in enough to figure out the args.
-X goes thru a different entry point altogether, that handles the EDN formatted arguments and builds a hash map and then invokes a function.
https://github.com/clojure/brew-install/blob/1.11.4/src/main/clojure/clojure/run/exec.clj
I believe it relies on being invoked by the Clojure CLI script, for things like reading the basis (from .cpcache), so you can't quite run it standalone.
(and clojure.run.exec is only on the classpath for the Clojure CLI I think?)
Correct
The -X/-T entry point is injected by the CLI and that shim is intentionally not easily available separately because it has continued to evolve over the years. I would eventually like to call it stable and either add it to core or in a separate lib
It has significantly benefitted from being able to evolve but the pace of change has gone way down
'k -- thanks. it was one of those "how could I get this weird thing to work?" experiments.