We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b6c6e1 commit 5b633baCopy full SHA for 5b633ba
1 file changed
src/squint/internal/cli.cljs
@@ -458,10 +458,12 @@ Use squint <subcommand> --help to show more info."))))
458
(println help)
459
(let [cmd-def (cmd-def-from-cli-args cmd-table cli-args)
460
;; squint.edn is passed as :exec-args so bb cli precedence is:
461
- ;; CLI > squint.edn > spec :default
+ ;; CLI > squint.edn > spec :default. Filter to spec keys so
462
+ ;; stray keys in squint.edn don't trip :restrict.
463
cmd-def (cond-> cmd-def
464
(:squint-edn? cmd-def)
- (assoc :exec-args (utils/get-cfg)))
465
+ (assoc :exec-args (select-keys (utils/get-cfg)
466
+ (keys (:spec cmd-def)))))
467
cmd-opts-args (parse-cmd-opts-args cli-args cmd-def)]
468
(when (:squint-edn? cmd-def)
469
;; sync cfg atom with fully merged opts for downstream consumers
0 commit comments