From 9ca4c12dbb7aa279a203d567ad4f460a3f558248 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 3 Jan 2024 20:53:23 +0100 Subject: [PATCH] yeah --- test/babashka/cli_test.cljc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/babashka/cli_test.cljc b/test/babashka/cli_test.cljc index ed2f823..1272fe4 100644 --- a/test/babashka/cli_test.cljc +++ b/test/babashka/cli_test.cljc @@ -363,6 +363,10 @@ (d/deflet (def table [{:cmds ["foo" "bar"] :fn identity :spec {:version {:coerce :string}}} {:cmds ["foo"] :fn identity :spec {:version {:coerce :boolean}}}]) + (is (submap? {:opts {:version true}, :args ["2010"]} + (cli/dispatch + table + ["foo" "--version" "2010"]))) (is (= "2010" (-> (cli/dispatch table ["foo" "bar" "--version" "2010"])