Reproducing example for babashka/cli v0.8.59:
(cli/dispatch [{:cmds ["foo"]
:fn identity
:spec {:x {:coerce :boolean}}}]
["foo"]
{:restrict true})
; => ExceptionInfo: Unknown option: :babashka.cli/opts-by-cmds
It seems like the special key :babashka.cli/opts-by-cmds is added to the config, and :restrict true then complains that this is not defined.