MCPcopy Index your code
hub / github.com/tj/commander.js / addHelpOption

Method addHelpOption

lib/command.js:2621–2625  ·  view source on GitHub ↗

* Supply your own option to use for the built-in help option. * This is an alternative to using helpOption() to customise the flags and description etc. * * @param {Option} option * @return {Command} `this` command for chaining

(option)

Source from the content-addressed store, hash-verified

2619 * @return {Command} `this` command for chaining
2620 */
2621 addHelpOption(option) {
2622 this._helpOption = option;
2623 this._initOptionGroup(option);
2624 return this;
2625 }
2626
2627 /**
2628 * Output help information and exit.

Callers 3

index.test-d.tsFile · 0.80

Calls 1

_initOptionGroupMethod · 0.95

Tested by

no test coverage detected