fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-13 00:02:20 +01:00
parent 9bb13e1ede
commit 2c6b955819

View File

@ -20,7 +20,7 @@ export const runCli = async (pathArg?: string) => {
// we want to have command line arguments available in the child process.
// when we have a path sepcified through a function there is one argeument less to pay respect to.
// thus when pathArg is specifed -> we only splice 2
pathArg? process.argv.splice(0, 2) : process.argv.splice(0, 3); // this ensures transparent arguments for the child process
pathArg ? process.argv.splice(0, 2) : process.argv.splice(0, 3); // this ensures transparent arguments for the child process
// lets setup things for execution
const smartshellInstance = new plugins.smartshell.Smartshell({