@@ -97,9 +97,18 @@ export type Argv = {
9797 'package-name' ?: string ;
9898} ;
9999
100- export const BUILTIN_TOOLS = [ 'eslint' , 'prettier' , 'biome' ] ;
100+ export const BUILTIN_TOOLS = [ 'biome' , 'eslint' , 'prettier' ] ;
101+
102+ function logHelpMessage (
103+ name : string ,
104+ templates : string [ ] ,
105+ extraTools ?: ExtraTool [ ] ,
106+ ) {
107+ const extraToolNames = extraTools ?. map ( ( tool ) => tool . value ) ?? [ ] ;
108+ const toolsList = [ ...BUILTIN_TOOLS , ...extraToolNames ] . join (
109+ ', ' ,
110+ ) ;
101111
102- function logHelpMessage ( name : string , templates : string [ ] ) {
103112 logger . log ( `
104113 Usage: create-${ name } [dir] [options]
105114
@@ -108,7 +117,7 @@ function logHelpMessage(name: string, templates: string[]) {
108117 -h, --help display help for command
109118 -d, --dir <dir> create project in specified directory
110119 -t, --template <tpl> specify the template to use
111- --tools <tool> select additional tools (biome, eslint, prettier )
120+ --tools <tool> select additional tools (${ toolsList } )
112121 --override override files in target directory
113122 --packageName <name> specify the package name
114123
@@ -270,7 +279,7 @@ export async function create({
270279 const argv = parseArgv ( processArgv ) ;
271280
272281 if ( argv . help ) {
273- logHelpMessage ( name , templates ) ;
282+ logHelpMessage ( name , templates , extraTools ) ;
274283 return ;
275284 }
276285
0 commit comments