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

Method arguments

lib/command.js:360–368  ·  view source on GitHub ↗

* Define argument syntax for command, adding multiple at once (without descriptions). * * See also .argument(). * * @example * program.arguments(' [env]'); * * @param {string} names * @return {Command} `this` command for chaining

(names)

Source from the content-addressed store, hash-verified

358 */
359
360 arguments(names) {
361 names
362 .trim()
363 .split(/ +/)
364 .forEach((detail) => {
365 this.argument(detail);
366 });
367 return this;
368 }
369
370 /**
371 * Define argument syntax for command, adding a prepared argument.

Callers 11

commandMethod · 0.80
helpCommandMethod · 0.80
getSingleArgCasesFunction · 0.80
getMultipleArgCasesFunction · 0.80
getTestCasesFunction · 0.80
index.test-d.tsFile · 0.80

Calls 1

argumentMethod · 0.95

Tested by 3

getSingleArgCasesFunction · 0.64
getMultipleArgCasesFunction · 0.64
getTestCasesFunction · 0.64