We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43c455f commit 20c7cfaCopy full SHA for 20c7cfa
lib/command.js
@@ -748,10 +748,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
748
*/
749
750
storeOptionsAsProperties(storeAsProperties = true) {
751
- this._storeOptionsAsProperties = !!storeAsProperties;
752
if (this.options.length) {
753
throw new Error('call .storeOptionsAsProperties() before adding options');
754
}
+ if (Object.keys(this._optionValues).length) {
755
+ throw new Error('call .storeOptionsAsProperties() before setting option values');
756
+ }
757
+ this._storeOptionsAsProperties = !!storeAsProperties;
758
return this;
759
760
0 commit comments