Re: destructure command line arguments

2014-07-25 Thread Tassilo Horn
empty...@gmail.com writes: Hi! > I have a main function: > > (defn -main [& args] > (let [{:keys [graph filepath title]} args] > (cond > (= graph "response") (graph-response filepath title) > (= graph "requests") (graph-request filepath) > (= graph "throughput") (graph-throu

destructure command line arguments

2014-07-25 Thread emptya45
Hi, I have a main function: (defn -main [& args] (let [{:keys [graph filepath title]} args] (cond (= graph "response") (graph-response filepath title) (= graph "requests") (graph-request filepath) (= graph "throughput") (graph-throughput filepath Which I can invoke wit