Skip to content

Commit 960089f

Browse files
committed
Fix issue with cli task option parsing
1 parent 93584d8 commit 960089f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

boot/core/src/boot/core.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,11 @@
261261
(when-not (and op (:boot.core/task (meta op)))
262262
(throw (IllegalArgumentException. (format "No such task (%s)" op-str))))
263263
(let [spec (:argspec (meta op))
264-
parsed (cli/parse-opts args spec :in-order true)]
264+
parsed (cli/parse-opts args spec :in-order true)
265+
opts (->> parsed :options (mapcat identity))]
265266
(when (seq (:errors parsed))
266267
(throw (IllegalArgumentException. (string/join "\n" (:errors parsed)))))
267-
(recur (conj ret (apply (var-get op) args)) (:arguments parsed)))))))
268+
(recur (conj ret (apply (var-get op) opts)) (:arguments parsed)))))))
268269

269270
(def ^:dynamic *warnings* nil)
270271

0 commit comments

Comments
 (0)