On Mon, Jan 12, 2009 at 9:44 PM, aria42 <ari...@gmail.com> wrote: > > Currently, you'd need to do something like this, where you might re- > def the var > > (with-command-line *command-line-args* > "my-program" > [[picture "Path to Picture" "/default/path"]] > (def picture (load-picture picture)) > (blah))
I usually use the body of with-command-line to simply call other functions, so it might look more like: (with-command-line *command-line-args* "my-program" [[picture "Path to Picture" "/default/path"] [size "The size of something" "99"]] (process-picture (load-picture picture) (Integer. size))) If each option provided a function, that function wouldn't have access to any of the other option values, right? How useful would that be? --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---