Skip to content

Commit

Permalink
fix: output help for sub commands too
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Oct 6, 2021
1 parent 54d5fab commit abe662b
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 @@ -214,7 +214,7 @@ class CAC extends EventEmitter {
this.setParsedInfo(parsed)
}

if (this.options.help && this.showHelpOnExit && this.matchedCommandName == null) {
if (this.options.help && this.showHelpOnExit) {
this.outputHelp()
run = false
this.unsetMatchedCommand()
Expand Down

0 comments on commit abe662b

Please sign in to comment.