Skip to content

Commit

Permalink
chore: refactor cli
Browse files Browse the repository at this point in the history
  • Loading branch information
d3lm committed Jan 11, 2024
1 parent cd080ab commit 656d25f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/js-wasm-tools.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ async function _runCLI() {

switch (positionals[0]) {
case 'parse': {
return _parseFile(positionals[1], { wat: values.wat, output: values.output });
_parseFile(positionals[1], { wat: values.wat, output: values.output });
break;
}
case 'print': {
return _parseFile(positionals[1], { wat: true, output: values.output });
_parseFile(positionals[1], { wat: true, output: values.output });
break;
}
case 'help': {
_printHelp();
Expand Down

0 comments on commit 656d25f

Please sign in to comment.