Parth Malwankar wrote:
> So for example is it possible to do something like this at
> the end of file:
>
> (when (running-as-script)
> (doseq x (repeatedly #(Thread/sleep 100))))
I do it with this idiom:
(when *command-line-args*
...)
Check out Script.java for more info.
-Drew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---