Skip to content

Commit

Permalink
Add option to skip parsing options.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 15, 2021
1 parent 7050e53 commit 632d60d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ class Generator extends Base {
this._options[name] = config;
}

this.parseOptions();
if (!this.options.skipParseOptions) {
this.parseOptions();
}

if (config.storage && this.options[name] !== undefined) {
const storage =
typeof config.storage === 'string'
Expand Down Expand Up @@ -642,7 +645,10 @@ class Generator extends Base {

this._arguments.push(config);

this.parseOptions();
if (!this.options.skipParseOptions) {
this.parseOptions();
}

return this;
}

Expand Down

0 comments on commit 632d60d

Please sign in to comment.