MCPcopy
hub / github.com/tj/commander.js / _getHelpOption

Method _getHelpOption

lib/command.js:2606–2612  ·  view source on GitHub ↗

* Lazy create help option. * Returns null if has been disabled with .helpOption(false). * * @returns {(Option | null)} the help option * @package

()

Source from the content-addressed store, hash-verified

2604 * @package
2605 */
2606 _getHelpOption() {
2607 // Lazy create help option on demand.
2608 if (this._helpOption === undefined) {
2609 this.helpOption(undefined, undefined);
2610 }
2611 return this._helpOption;
2612 }
2613
2614 /**
2615 * Supply your own option to use for the built-in help option.

Callers 6

_dispatchHelpCommandMethod · 0.95
outputHelpMethod · 0.95
helpOptionMethod · 0.95
visibleOptionsMethod · 0.80

Calls 1

helpOptionMethod · 0.95

Tested by

no test coverage detected