It looks like main is called the same way. Like I said, my example is not
much different than the one that comes with cljs.
(ns nodels
(:require [cljs.nodejs :as nodejs]))
(def fs (nodejs/require "fs"))
(def path (nodejs/require "path"))
(defn file-seq [dir]
(tree-seq
(fn [f] (.isDirectory (.statSync fs f) ()))
(fn [d] (map #(.join path d %) (.readdirSync fs d)))
dir))
(defn -main [& paths]
(dorun (map println (mapcat file-seq paths))))
(set! *main-cli-fn* -main)
The above example is the one I'm talking about and works fine. It's weird.
--
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