Skip to content

Commit

Permalink
Fix cacjs#151
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed Feb 17, 2023
1 parent af9d179 commit b0d4932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CAC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0d4932

Please sign in to comment.