Overiding command-specific opt doesn't work
jmglov opened this issue · 0 comments
jmglov commented
For example, given a function with the following spec:
(defn process-file
{:org.babashka/cli
{:spec
{:media-file
{:desc "Media file to transribe"
:ref "<file>"
:require true}}}}
[{:keys [media-file] :as opts}]
media-file)
Calling cli/dispatch
like so would result in process-file
returning nil
:
(cli/dispatch {:media-file "some-file.mp4"})