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

Method name

lib/command.js:2345–2349  ·  view source on GitHub ↗

* Get or set the name of the command. * * @param {string} [str] * @return {(string|Command)}

(str)

Source from the content-addressed store, hash-verified

2343 */
2344
2345 name(str) {
2346 if (str === undefined) return this._name;
2347 this._name = str;
2348 return this;
2349 }
2350
2351 /**
2352 * Set/get the help group heading for this subcommand in parent command's help.

Callers 12

_parseCommandMethod · 0.95
_excessArgumentsMethod · 0.95
aliasMethod · 0.95
addArgumentMethod · 0.45
knownByMethod · 0.45
addOptionMethod · 0.45
myParseArgMethod · 0.45
parseOptionsMethod · 0.45
_parseOptionsEnvMethod · 0.45
unknownCommandMethod · 0.45
versionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected