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

Method getOptionValue

lib/command.js:916–921  ·  view source on GitHub ↗

* Retrieve option value. * * @param {string} key * @return {object} value

(key)

Source from the content-addressed store, hash-verified

914 */
915
916 getOptionValue(key) {
917 if (this._storeOptionsAsProperties) {
918 return this[key];
919 }
920 return this._optionValues[key];
921 }
922
923 /**
924 * Store option value.

Callers 10

handleOptionValueMethod · 0.95
_prepareForParseMethod · 0.95
_parseOptionsEnvMethod · 0.95
hasCustomOptionValueMethod · 0.95
_parseOptionsImpliedMethod · 0.95
index.test-d.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected