Re: detecting running as script

2009-01-14 Thread Grunde
-line-args* (main *command-line-args*)) - When I run it from the command line I get: $ ./test.clj this is the command line args somefunc! (((./test.clj this is the command line args))) $ Best, Grunde On 4 Jan, 14:58, "Mark Volkmann" wrote: > On Sun, Jan 4, 2009 at 3:57 A

Re: detecting running as script

2009-01-14 Thread Grunde
uby/Pythons optparse to assist parsing of command line arguments? Best, Grunde On 4 Jan, 14:58, "Mark Volkmann" wrote: > On Sun, Jan 4, 2009 at 3:57 AM, Timothy Pratley > > > > wrote: > > >> I suspect that *command-line-arguments* would have "myapp.

Re: detecting running as script

2009-01-14 Thread Grunde Løvoll
Thanks! I'll have a look at clojure.contrib.command-line. I don't need anything super-powerfull, just something that make it easy to define and parse command line arguments in the "normal manner". Sorry about my previous double post :( Grunde On Wed, Jan 14, 2009 at 6:0