Skip to content

Commit

Permalink
fix(cli): should not show help for default command
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Apr 23, 2024
1 parent c904452 commit d83a95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Expand Up @@ -22,6 +22,6 @@ const argv = yargs

const command = argv._[0] as string;

if (!['build', 'dev', 'serve', 'init'].includes(command)) {
if (command && !['build', 'dev', 'serve', 'init', ''].includes(command)) {
yargs.showHelp();
}

0 comments on commit d83a95c

Please sign in to comment.