diff --git a/src/CAC.ts b/src/CAC.ts index 7a3df11..20baa16 100644 --- a/src/CAC.ts +++ b/src/CAC.ts @@ -200,7 +200,7 @@ class CAC extends EventEmitter { if (shouldParse) { // Search the default command for (const command of this.commands) { - if (command.name === '') { + if (command.isDefaultCommand) { shouldParse = false const parsed = this.mri(argv.slice(2), command) this.setParsedInfo(parsed, command)