Currently, :tools/usage
supports :ns-default
and :ns-aliases
but there's no way to provide a default function to be executed -- even though -X
and deps.edn
do support a default function.
This would allow tool authors to either provide help as a default when someone runs a tool like this:
clojure -Tsome-tool
or to default to the most common operation, for example deps-new
could default to create
so that it could be omitted from commands that use templates:
clojure -Sdeps '{:deps {io.github.cryogen-project/cryogen {:git/tag "0.6.6" :git/sha "fcb2833"}}}' -Tnew :template org.cryogenweb/new :name myname/myblog
(this is an example from Cryogen's README -- and it is currently incorrect usage because create
is missing but given a :template
, the only function it makes sense to call is create
in this case).