Fork me on GitHub

I've found I need to use (defn foo [& args]...) when evoking a function with clj -X core/foo , even if I don't intend on that function taking any args, or else I get a wrong number of args passed in error. Should I approach this in a different way?


I'm mostly using that functionality when I want to test side effect stuff like user input. Should I be approaching that differently too you think? That's the only time I feel the jvm startup pain


if it's solely for testing, you can also do -M -e "((requiring-resolve 'core/foo))"


@chase-lambert -X always provides exactly one argument (a map)


if you want to test stuff, just use REPL, why do it through cli...