Commits

Meikel Brandmeyer committed fdc765d

Make port option more robust

  • Participants
  • Parent commits e3d269f

Comments (0)

Files changed (1)

File clojuresque-nrepl-runtime/src/main/resources/clojuresque/tasks/repl.clj

 (def server nil)
 
 (util/deftask start-repl
-  [{:keys [port handler]}]
-  (let [p (Long/parseLong port)
+  [{:keys [port handler middleware]}]
+  (let [p (if (string? port)
+            (Long/parseLong port)
+            port)
         h (if handler
             (let [custom-handler (util/resolve-required handler)]
               (when-not custom-handler