On Mon, Jun 20, 2011 at 12:26 PM, octopusgrabbus <octopusgrab...@gmail.com> wrote: > In the following program, is the scope of the command line arguments > -- args -- local to with-command-line, or can they be accessed > outside with-command-line?
args itself is available in the scope of your -main function. The command line argument you specify, file-name, is available only inside with-command-line. If you want the default to be "resultset.csv", why not specify that in the cmdspec: (defn -main [& args] (with-command-line args "Get csv file name" [[file-name ".csv file name" "resultset.csv"]] (println "filename:" file-name) (process-file file-name)) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en