From ef073c01fd60ba2316431b194033d14f6e98c146 Mon Sep 17 00:00:00 2001 From: airscripts Date: Sat, 29 Jul 2023 16:08:43 +0200 Subject: [PATCH] refactor: add missing run and compile commands into help --- cli.js | 4 ++-- lib/help.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 2a3c7b0..67a9e2a 100644 --- a/cli.js +++ b/cli.js @@ -24,10 +24,10 @@ function cli() { switch (command) { case COMPILE: compile(args); break; case RUN: output = run(args); break; - case HELP: process.stdout.write(help); break; + case HELP: process.stdout.write(help); return; case ANALLIFY: output = anallify(args); break; case STRINGIFY: output = stringify(args); break; - default: process.stdout.write(help); break; + default: process.stdout.write(help); return; } process.stdout.write(`${output}\n`); diff --git a/lib/help.js b/lib/help.js index 7b8eed9..6a5a645 100644 --- a/lib/help.js +++ b/lib/help.js @@ -10,6 +10,8 @@ Usage: const commands = ` Commands: + run Run a .anal file + compile Compile any file to .anal anallify Encode string to anal stringify Decode anal to string help Show this help