Fork me on GitHub
#babashka
<
2024-05-13
>
teodorlu19:05:39

What is :cmd-opts meant to do in babashka.cli/dispatch? :cmd-opts shows up https://github.com/babashka/cli/blob/8ec3e9b8e60b1d37f2377b86c5c448f3938a0b7d/src/babashka/cli.cljc#L675:

[{:cmds ["sub_1" .. "sub_n"] :fn f :cmds-opts [:lib]}
But the https://github.com/babashka/cli/blob/8ec3e9b8e60b1d37f2377b86c5c448f3938a0b7d/README.md#L442`:args->opts`, and doesn’t seem to mention :cmds-opts.
[{:cmds ["copy"]   :fn copy   :args->opts [:file]}

borkdude20:05:54

That key is deprecated, PR welcome to remove it

👍 1
1
🙏 1
😸 1