Skip to content

Commit

Permalink
refactor: add missing run and compile commands into help
Browse files Browse the repository at this point in the history
  • Loading branch information
airscripts committed Jul 29, 2023
1 parent 6a21ced commit ef073c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 2 additions & 0 deletions lib/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef073c0

Please sign in to comment.