Skip to content

Commit 4247f99

Browse files
committed
fix: Revert "fix: only output version message for root command"
This reverts commit 550d0f7.
1 parent 550d0f7 commit 4247f99

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
@@ -220,7 +220,7 @@ class CAC extends EventEmitter {
220220
this.unsetMatchedCommand()
221221
}
222222

223-
if (this.options.version && this.showVersionOnExit && this.matchedCommandName === undefined) {
223+
if (this.options.version && this.showVersionOnExit) {
224224
this.outputVersion()
225225
run = false
226226
this.unsetMatchedCommand()

0 commit comments

Comments
 (0)