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.I guess I'm not sure exactly what you're asking for
either in the alias or on the command line
Are you asking where the code is?
for example https://github.com/clojure/tools.build/blob/master/deps.edn#L20
tools. run with -T, are basically the same as -X https://clojure.org/reference/clojure_cli#use_fn
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?you cannot alter this behavior
-X allows a default function (that you could potentially hook), but -T for named tools does not
doing something else is a reasonable feature request, which you could make in an https://ask.clojure.org question
Thx @alexmiller.