   [project & args]
   (if (= args ["help"])
     (println (help/help-for "jslint"))
-    (proc project)))
+    (proc project args)))
 
 
 ; External API: Hooks

  (json/generate-string
   (merge (config project) DEF_CONFIG)))

(defn- invoke [project & args]
  (process/exec
   (project :root)
   (cons "jslint" args)))

(defn- proc [project]
  (try
    (npm/environmental-consistency project)
    (let [file (config-file project)
          content (generate-config-file project)
          includes (include-files project)]
      (npm/with-json-file file content project
                          (apply invoke project includes)))
    (catch Throwable t
      (println (joine (str "Can't execute jslint application: " (.getMessage t))
                      "Check that JSLint is:"
                      " - installed correctly: npm install jslint -g"
                      " - configured correctly: https://github.com/vbauer/lein-jslint.git"))
      (main/abort))))



(defn- config [project] (opt project :config {}))
(defn- config-file [project] (opt project :config-file DEF_CONFIG_FILE))
(defn- include-files [project] (find-files (vec (opt project :includes nil))))
(defn- exclude-files [project] (find-files (vec (opt project :excludes nil))))


; Internal API: Runner
