 ;====================================================================================
 
 (defn cmd-usage [options-summary]
-  (->> ["AnyChart Export Server"
+  (->> [server-name
         ""
         "Action: cmd"
         "Usage: java -jar anychart-export.jar cmd [options]"

(ns export-server.core
  (:use [compojure.route :only [not-found]]
        org.httpkit.server
        compojure.core)

;====================================================================================
(defn -main [& args]
  (let [{:keys [options arguments errors summary]} (parse-opts args common-options)]
    (cond
      (:version options) (exit 0 server-name)
      (not= (count arguments) 1) (exit 1 (usage))
      errors (exit 1 (error-msg errors)))
    (reset! web/allow-script-executing (:allow-scripts-executing options))
    (case (first arguments)
      "server" (start-server options summary)
