How can you list the parameters of a Leiningen template?

From the Luminus Documentation, I see there an h2 option when creating a Luminus application:

lein new luminus guestbook +h2 

How can I see all the available options?

+5
source share
2 answers

This is not a complete answer, but it seems that passing the wrong attribute was all that was required, at least in the case of luminus, to get a list of attributes:

 $ lein new luminus meh +meh Unrecognized options: +mhe Supported options are: +immutant, +site, +h2, +dailycred, +cljs, +sassc, +swagger, +auth, +http-kit, +cucumber, +aleph, +mongodb, +postgres, +mysql 
+4
source

You can use the following command:

 lein new :show <template> 

Unfortunately, if the template function does not provide a doc string and uses the args or options breakpoint, you won’t get much from it, and you will probably need to check the sources of the template.

Check all the help for the new task with lein help new .

+3
source

All Articles