Skip to content
Myr

Fix help for commands with executable handler & only a short help flag

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Wee Bit · committed by Abe Tomoaki · parent f3431d1 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:lib/command.js+3 added-3 removed
1099 unmodified lines
1100 subCommand.help();1101 }11021103 // Fallback to parsing the help flag to invoke the help.1104 if (this._helpLongFlag) {1105 return this._dispatchSubcommand(subcommandName, [], [this._helpLongFlag]);1106 }1104 return this._dispatchSubcommand(subcommandName, [], [1105 this._helpLongFlag || this._helpShortFlag1106 ]);1107 }11081109 /**1110 * Check this.args against expected this._args.
1090 unmodified lines