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