diff --git a/packages/cli/src/cliEntry.js b/packages/cli/src/cliEntry.js index 62db9ed57..e24981acd 100644 --- a/packages/cli/src/cliEntry.js +++ b/packages/cli/src/cliEntry.js @@ -185,9 +185,7 @@ async function setupAndRun() { if (!command) { commander.help(); - } - - if (typeof command === 'string') { + } else if (typeof command === 'string') { printUnknownCommand(commander.args); } }