Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by
edited by

I would like to pass in an entire arg map to clojure -X and decide using a custom function how this should be merged with the default one from deps.edn. This could be a function in the :exec-fn alias, e.g. :exec-merge-args (and could default to merge or something based on merge-with).

My reason for this request is that passing in individual paths takes quite a lot of quoting on the command line for paths and strings. It would be less thinking and less error prone to just pass in one quoted map.

This is related to https://ask.clojure.org/index.php/10059/x-args-add-things-to-vector.
If I could describe how this should be merged using a custom function, adding things to a vector would be sufficiently solved as well.

Please log in or register to answer this question.