Possible Duplicate:
What is the clojure equivalent of the Python idiom “if name == 'main'”?
I would use -main
, but it only runs in compiled mode, not interpreted mode.
I would use (if (.isAbsolute (java.io.File. *file*)) (main *command-line-args*))
, but that runs during any (load)
ing of scripts.