Re: with-command-line and empty/nil args list

2009-11-14 Thread Mike Hogye
Thanks! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email

Re: with-command-line and empty/nil args list

2009-11-13 Thread Chouser
On Fri, Nov 13, 2009 at 5:16 PM, Mike Hogye wrote: > Using with-command-line from clojure.contrib.command-line, if the list > of command-line args is empty or nil, the usage message is printed > (and the nested code is not run), even if all the options have default > values. It's a feature! http

with-command-line and empty/nil args list

2009-11-13 Thread Mike Hogye
Using with-command-line from clojure.contrib.command-line, if the list of command-line args is empty or nil, the usage message is printed (and the nested code is not run), even if all the options have default values. The following (note that the first arg is the empty list) prints the usage messag