diff --git a/lib/index.js b/lib/index.js index 2fce7936..28ed2649 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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' @@ -642,7 +645,10 @@ class Generator extends Base { this._arguments.push(config); - this.parseOptions(); + if (!this.options.skipParseOptions) { + this.parseOptions(); + } + return this; }