diff --git a/src/index.ts b/src/index.ts index 61618b43d19..7a6c7be313e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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