diff --git a/src/main.js b/src/main.js index 82f035f..e4711c7 100644 --- a/src/main.js +++ b/src/main.js @@ -44,9 +44,11 @@ function run(cmd) { } } -if(command) return console.log(run(command)); -else console.log(help()); -while(true) { - const cmd = await ask('> '); - console.log(await run(cmd), '\n'); +if(command) console.log(run(command)); +else { + console.log(help()); + while(true) { + const cmd = await ask('> '); + console.log(await run(cmd), '\n'); + } }