Skip to content

Commit 632d60d

Browse files
committed
Add option to skip parsing options.
1 parent 7050e53 commit 632d60d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,10 @@ class Generator extends Base {
592592
this._options[name] = config;
593593
}
594594

595-
this.parseOptions();
595+
if (!this.options.skipParseOptions) {
596+
this.parseOptions();
597+
}
598+
596599
if (config.storage && this.options[name] !== undefined) {
597600
const storage =
598601
typeof config.storage === 'string'
@@ -642,7 +645,10 @@ class Generator extends Base {
642645

643646
this._arguments.push(config);
644647

645-
this.parseOptions();
648+
if (!this.options.skipParseOptions) {
649+
this.parseOptions();
650+
}
651+
646652
return this;
647653
}
648654

0 commit comments

Comments
 (0)