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

Method _initCommandGroup

lib/command.js:2415–2418  ·  view source on GitHub ↗

* @param {Command} cmd * @private

(cmd)

Source from the content-addressed store, hash-verified

2413 * @private
2414 */
2415 _initCommandGroup(cmd) {
2416 if (this._defaultCommandGroup && !cmd.helpGroup())
2417 cmd.helpGroup(this._defaultCommandGroup);
2418 }
2419
2420 /**
2421 * Set the name of the command from script filename, such as process.argv[1],

Callers 3

helpCommandMethod · 0.95
addHelpCommandMethod · 0.95
_registerCommandMethod · 0.95

Calls 1

helpGroupMethod · 0.45

Tested by

no test coverage detected