Skip to content

Commit 2e74e04

Browse files
committed
chore: push value to installerArgs if value is not boolean
1 parent f784689 commit 2e74e04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/commands/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ export default class Create extends Command {
4444
const installerArgs = ['new', args.name]
4545

4646
for (const [key, value] of Object.entries(flags)) {
47-
if (value) {
47+
if (value === true) {
4848
installerArgs.push(`--${key}`)
49+
} else {
50+
installerArgs.push(`--${key}`)
51+
installerArgs.push(value)
4952
}
5053
}
5154

0 commit comments

Comments
 (0)