Skip to content

Commit

Permalink
fix: Revert "fix: only output version message for root command"
Browse files Browse the repository at this point in the history
This reverts commit 550d0f7.
  • Loading branch information
egoist committed Oct 6, 2021
1 parent 550d0f7 commit 4247f99
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 @@ -220,7 +220,7 @@ class CAC extends EventEmitter {
this.unsetMatchedCommand()
}

if (this.options.version && this.showVersionOnExit && this.matchedCommandName === undefined) {
if (this.options.version && this.showVersionOnExit) {
this.outputVersion()
run = false
this.unsetMatchedCommand()
Expand Down

0 comments on commit 4247f99

Please sign in to comment.