Skip to content

Commit

Permalink
Fixed issue with CLI stuck on the prompt in non-interactive mode solv…
Browse files Browse the repository at this point in the history
…ing pnp#142
  • Loading branch information
waldekmastykarz committed Dec 31, 2017
1 parent 38ad176 commit 0eb073d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ fs.realpath(__dirname, (err: NodeJS.ErrnoException, resolvedPath: string): void

let v: Vorpal | null = null;
try {
if (process.argv.length > 2) {
vorpal.delimiter('');
(vorpal as any).ui.attach(vorpal);
}
v = vorpal.parse(process.argv);

// if no command has been passed/match, run immersive mode
Expand Down

0 comments on commit 0eb073d

Please sign in to comment.