Skip to content

Commit 28a7efd

Browse files
committed
fix(cli): prevent banner and usage display when commands are provided
1 parent 711910b commit 28a7efd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/cli/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ export const main = defineCommand({
2828
if (args._[0] === 'complete') {
2929
return
3030
}
31-
console.log(createBanner())
32-
showUsage(cmd)
31+
if (args._.length === 0) {
32+
console.log(createBanner())
33+
showUsage(cmd)
34+
}
3335
},
3436
})
3537

0 commit comments

Comments
 (0)