Skip to content

Commit

Permalink
Add :require true to README spec example (#76)
Browse files Browse the repository at this point in the history
Without it no error is provoked, with :require true it works as implied
by the surrounding text.
  • Loading branch information
emilaasa authored Nov 21, 2023
1 parent ce3410f commit 2bbda93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ For example:
(cli/parse-opts
[]
{:spec {:foo {:desc "You know what this is."
:ref "<val>"}}
:ref "<val>"
:require true}}
:error-fn
(fn [{:keys [spec type cause msg option] :as data}]
(if (= :org.babashka/cli type)
Expand Down

0 comments on commit 2bbda93

Please sign in to comment.