diff --git a/src/index.ts b/src/index.ts index 9cd78fd318..48bc20604c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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