From d356fb1aa30972c031af16bb608e98dace004bb5 Mon Sep 17 00:00:00 2001 From: habruening Date: Sat, 7 Feb 2026 15:26:08 +0100 Subject: [PATCH 1/2] typo --- API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API.md b/API.md index 5fd8fa5..7c6be28 100644 --- a/API.md +++ b/API.md @@ -211,7 +211,7 @@ Parse the command line arguments `args`, a seq of strings. ;; => {:bar "1", :org.babashka/cli {:cmds ["foo"]}} (parse-args [":b" "1"] {:aliases {:b :bar} :coerce {:bar parse-long}}) ;; => {:bar 1} - (parse-args ["--baz" "--qux"] {:spec {:baz {:desc "Baz"} :restrict true}) + (parse-args ["--baz" "--qux"] {:spec {:baz {:desc "Baz"}} :restrict true}) ;; => throws 'Unknown option --qux' exception b/c there is no :qux key in the spec ``` From 2d9c0cadb8278e33007a276e380d0413be3ed8f2 Mon Sep 17 00:00:00 2001 From: habruening Date: Sun, 8 Feb 2026 21:29:38 +0100 Subject: [PATCH 2/2] fixing small typo in the code --- src/babashka/cli.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babashka/cli.cljc b/src/babashka/cli.cljc index e36af4f..080c928 100644 --- a/src/babashka/cli.cljc +++ b/src/babashka/cli.cljc @@ -293,7 +293,7 @@ ;; => {:bar \"1\", :org.babashka/cli {:cmds [\"foo\"]}} (parse-args [\":b\" \"1\"] {:aliases {:b :bar} :coerce {:bar parse-long}}) ;; => {:bar 1} - (parse-args [\"--baz\" \"--qux\"] {:spec {:baz {:desc \"Baz\"} :restrict true}) + (parse-args [\"--baz\" \"--qux\"] {:spec {:baz {:desc \"Baz\"}} :restrict true}) ;; => throws 'Unknown option --qux' exception b/c there is no :qux key in the spec ``` "