I have defined a -main function in a :gen-class :main true namespace in Clojure. I am trying to test it from the REPL.
My main function looks like this:
(defn -main [& args]
; ...
)
and I am trying to call it with (ns/-main "-x" "foo"), (ns/-main "-x foo"), (ns/-main ["-x" "foo"]), (ns/-main (into-array String ["-x" "foo"]), etc., and all give me various errors.
How do I call this function from the REPL and pass in some command line arguments to test it?
Thanks.