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 Jan 5, 2018
1 parent 4077bca commit 9982682
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 @@ -64,6 +64,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 9982682

Please sign in to comment.