From 663052bda32a9eae78c9c7a3ea3b6a2b6308fc35 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 21 Apr 2023 10:47:57 +0200 Subject: [PATCH] wip [skip ci] --- src/babashka/main.clj | 4 ++-- test/babashka/main_test.clj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/babashka/main.clj b/src/babashka/main.clj index cc82b370..22c468af 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -317,7 +317,7 @@ Use bb run --help to show this help output. (let [user-middleware (when-not (str/blank? user-middleware) (read-string user-middleware)) opts (nrepl-server/parse-opt address) - opts (assoc opts :user-middleware user-middleware)] + opts (assoc opts :middleware user-middleware)] (babashka.impl.nrepl-server/start-server! opts)) (binding [*out* *err*] (println "For more info visit: https://book.babashka.org/#_nrepl")) @@ -648,7 +648,7 @@ Use bb run --help to show this help output. (recur options (assoc opts-map :nrepl (or opt "1667")))) - ("--middlware") + ("--middleware") (let [options (next options)] (recur (next options) (assoc opts-map diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index ae1b6815..f8dca47f 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -26,7 +26,7 @@ (is (= "1667" (:nrepl (parse-opts ["--nrepl-server"])))) (is (= "[foo]" - (:middleware (parse-opts ["--middlware" "[foo]"])))) + (:middleware (parse-opts ["--middleware" "[foo]"])))) (is (= "1666" (:socket-repl (parse-opts ["--socket-repl"])))) (is (= {:nrepl "1667", :classpath "src"}