Skip to content

Commit ef073c0

Browse files
committed
refactor: add missing run and compile commands into help
1 parent 6a21ced commit ef073c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ function cli() {
2424
switch (command) {
2525
case COMPILE: compile(args); break;
2626
case RUN: output = run(args); break;
27-
case HELP: process.stdout.write(help); break;
27+
case HELP: process.stdout.write(help); return;
2828
case ANALLIFY: output = anallify(args); break;
2929
case STRINGIFY: output = stringify(args); break;
30-
default: process.stdout.write(help); break;
30+
default: process.stdout.write(help); return;
3131
}
3232

3333
process.stdout.write(`${output}\n`);

lib/help.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Usage:
1010

1111
const commands = `
1212
Commands:
13+
run Run a .anal file
14+
compile Compile any file to .anal
1315
anallify Encode string to anal
1416
stringify Decode anal to string
1517
help Show this help

0 commit comments

Comments
 (0)