 (require '[ring.adapter.jetty      :as jetty])
 (require '[ring.middleware.params  :as http-params])
 (require '[ring.middleware.cookies :as cookies])
+
 (require '[clojure.tools.cli       :as cli])
- 
+
+(require '[emender-jenkins.server       :as server])
 (require '[emender-jenkins.config       :as config])
-(require '[emender-jenkins.server       :as server])
+(require '[emender-jenkins.middleware   :as middleware])
 (require '[emender-jenkins.process-info :as process-info])
 
 (def cli-options
+    "Definitions of all command line options that are  currenty supported."
     ;; an option with a required argument
     [["-h"   "--help"                       "show help"                                                    :id :help]
      ["-p"   "--port   PORT"                "port number on which Stage Dashboard should accepts requests" :id :port]

          show-config?        (options :show-config)]
          (System/setProperty "javax.net.ssl.keyStore",   "keystore")
          (System/setProperty "javax.net.ssl.trustStore", "keystore")
          (print-environment-configuration)
          (cond show-help?   (show-help (:summary all-options))
                fetch-only?  (fetch-jobs-only options)
                show-config? (show-config options)
                :else        (run-app options))))


          test-jobs-suffix    (options :test-jobs-suffix)
          openshift-ip        (System/getenv "OPENSHIFT_CLOJURE_HTTP_IP")
          openshift-port      (System/getenv "OPENSHIFT_CLOJURE_HTTP_PORT")]
        (print-environment-configuration)
        ;(config/override-options-by-cli jenkins-url test-jobs-suffix)
        (println "Finished")))

(defn run-app
