From 85e6ab01aedf8b075cb4598d39afc73dbb0ccac5 Mon Sep 17 00:00:00 2001 From: ztimson Date: Wed, 30 Oct 2024 11:06:19 -0400 Subject: [PATCH] Fixed startup command --- src/main.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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'); + } }