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

Method createOption

lib/command.js:586–588  ·  view source on GitHub ↗

* Factory routine to create a new unattached option. * * See .option() for creating an attached option, which uses this routine to * create the option. You can override createOption to return a custom option. * * @param {string} flags * @param {string} [description] * @return {O

(flags, description)

Source from the content-addressed store, hash-verified

584 */
585
586 createOption(flags, description) {
587 return new Option(flags, description);
588 }
589
590 /**
591 * Wrap parseArgs to catch 'commander.invalidArgument'.

Callers 4

_optionExMethod · 0.95
versionMethod · 0.95
helpOptionMethod · 0.95
visibleOptionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected