Skip to content

Commit abe662b

Browse files
committed
fix: output help for sub commands too
1 parent 54d5fab commit abe662b

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
@@ -214,7 +214,7 @@ class CAC extends EventEmitter {
214214
this.setParsedInfo(parsed)
215215
}
216216

217-
if (this.options.help && this.showHelpOnExit && this.matchedCommandName == null) {
217+
if (this.options.help && this.showHelpOnExit) {
218218
this.outputHelp()
219219
run = false
220220
this.unsetMatchedCommand()

0 commit comments

Comments
 (0)