tools-deps

amiorin 2025-10-14T18:56:21.026169Z

Hi all! Where can I define the key mentioned in the message below?

> clojure -Tbig-config
No function found on command line or in :exec-fn
I would like print the help if no function is passed on the command line.

Alex Miller (Clojure team) 2025-10-14T18:57:44.963739Z

I guess I'm not sure exactly what you're asking for

2025-10-14T18:59:27.243219Z

either in the alias or on the command line

Alex Miller (Clojure team) 2025-10-14T19:00:08.130359Z

Are you asking where the code is?

2025-10-14T19:02:42.214429Z

tools. run with -T, are basically the same as -X https://clojure.org/reference/clojure_cli#use_fn

amiorin 2025-10-14T19:59:32.332699Z

As the creator of the tool big-config, I'd like to my users to read an help when they type

clojure -Tbig-config
I have noticed that
clojure -Ttools
also produces the same output No function found on command line or in :exec-fn. I tried to modify the deps.edn but it didn't work. Where should I put the :exec-fn key?

Alex Miller (Clojure team) 2025-10-14T20:19:03.764459Z

you cannot alter this behavior

Alex Miller (Clojure team) 2025-10-14T20:19:44.121689Z

-X allows a default function (that you could potentially hook), but -T for named tools does not

Alex Miller (Clojure team) 2025-10-14T20:20:26.000829Z

doing something else is a reasonable feature request, which you could make in an https://ask.clojure.org question

amiorin 2025-10-14T20:27:07.422349Z

Thx @alexmiller.