Skip to content

Commit 245fcf5

Browse files
committed
We should not lookup for .yo-rc.json and change cwd when running help.
1 parent ba43e2c commit 245fcf5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ class Generator extends EventEmitter {
186186
});
187187

188188
this.resolved = this.options.resolved || __dirname;
189+
this.description = this.description || '';
190+
191+
if (this.options.help) {
192+
this.options.localConfigOnly = true;
193+
}
194+
189195
this.env = this.options.env;
190196

191197
// Make sure we have a full featured environment.
@@ -223,8 +229,6 @@ class Generator extends EventEmitter {
223229

224230
this.fs = require('mem-fs-editor').create(this.env.sharedFs);
225231

226-
this.description = this.description || '';
227-
228232
// Place holder for run-async callback.
229233
this.async = () => () => {};
230234

0 commit comments

Comments
 (0)