Skip to content

Commit b754f5a

Browse files
author
nyqykk
committed
fix: support --tools to specify all tools
1 parent f06d5a5 commit b754f5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ function logHelpMessage(name: string, templates: string[]) {
103103

104104
async function getTools({ tools, dir, template }: Argv) {
105105
if (tools) {
106-
return Array.isArray(tools) ? tools : [tools];
106+
// support --tools 'biome eslint prettier'
107+
return Array.isArray(tools) ? tools : tools.split(' ');
107108
}
108109
// skip tools selection when using CLI options
109110
if (dir && template) {

0 commit comments

Comments
 (0)