Skip to content

Commit 3f79727

Browse files
committed
fix: emit command:* properly
1 parent 6d111f9 commit 3f79727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CAC.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class CAC extends EventEmitter {
209209

210210
if (this.matchedCommand) {
211211
this.runCommandAction(this.matchedCommand, parsedArgv)
212-
} else {
212+
} else if (this.args[0]) {
213213
this.emit('command:*')
214214
}
215215

0 commit comments

Comments
 (0)