diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index b6e62947..39b3667a 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -68,6 +68,10 @@ (is (= {:force? true :repl true} (parse-opts ["--force" "repl"]))) (is (= {:force? true :clojure true :command-line-args '("-M" "-r")} (parse-opts ["--force" "clojure" "-M" "-r"]))) + (is (= {:command-line-args '("asdf" "fdsa")} + (main/parse-opts ["--" "asdf" "fdsa"]))) + (is (= {:repl true :command-line-args '("asdf" "fdsa")} + (main/parse-opts ["repl" "--" "asdf" "fdsa"]))) (testing "file opts parsing does not mess with :command-line-args" (is (= {:prn true, :expressions ["(prn :foo)"]} (-> (let [[_ opts] (main/parse-file-opt ["-e" "(prn :foo)"] {})]