From d83a95c91db5f8acd0307e4206f95cac8afc68d9 Mon Sep 17 00:00:00 2001 From: why520crazy Date: Tue, 23 Apr 2024 18:54:22 +0800 Subject: [PATCH] fix(cli): should not show help for default command --- packages/cli/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 7472ff2b..46c62bb7 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -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(); }