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 1f5a677 commit 1d8a054Copy full SHA for 1d8a054
src/Command.ts
@@ -125,7 +125,11 @@ class Command {
125
126
outputHelp() {
127
const { bin, commands } = this.cli
128
- const { versionNumber, options: globalOptions } = this.cli.globalCommand
+ const {
129
+ versionNumber,
130
+ options: globalOptions,
131
+ helpCallback
132
+ } = this.cli.globalCommand
133
134
const sections: HelpSection[] = [
135
{
@@ -206,8 +210,8 @@ class Command {
206
210
})
207
211
}
208
212
209
- if (this.helpCallback) {
- this.helpCallback(sections)
213
+ if (helpCallback) {
214
+ helpCallback(sections)
215
216
217
console.log(
0 commit comments