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

Method argParser

lib/option.js:132–135  ·  view source on GitHub ↗

* Set the custom handler for processing CLI option arguments into option values. * * @param {Function} [fn] * @return {Option}

(fn)

Source from the content-addressed store, hash-verified

130 */
131
132 argParser(fn) {
133 this.parseArg = fn;
134 return this;
135 }
136
137 /**
138 * Whether the option is mandatory and must have a value after parsing.

Callers 8

argumentMethod · 0.45
_optionExMethod · 0.45
options-extra.jsFile · 0.45
index.test-d.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected