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)