We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5060bd9 commit 550d0f7Copy full SHA for 550d0f7
src/CAC.ts
@@ -220,7 +220,7 @@ class CAC extends EventEmitter {
220
this.unsetMatchedCommand()
221
}
222
223
- if (this.options.version && this.showVersionOnExit) {
+ if (this.options.version && this.showVersionOnExit && this.matchedCommandName === undefined) {
224
this.outputVersion()
225
run = false
226
0 commit comments