* Store option value and where the value came from. * * @param {string} key * @param {object} value * @param {string} source - expected values are default/config/env/cli/implied * @return {Command} `this` command for chaining
(key, value, source)
| 942 | */ |
| 943 | |
| 944 | setOptionValueWithSource(key, value, source) { |
| 945 | if (this._storeOptionsAsProperties) { |
| 946 | this[key] = value; |
| 947 | } else { |
| 948 | this._optionValues[key] = value; |
| 949 | } |
| 950 | this._optionValueSources[key] = source; |
| 951 | return this; |
| 952 | } |
| 953 | |
| 954 | /** |
| 955 | * Get source of option value. |
no outgoing calls
no test coverage detected