near / wasmtime

Standalone JIT-style runtime for WebAssembly, using Cranelift
https://wasmtime.dev/
Apache License 2.0
3 stars 4 forks source link

feat(run-tests-zkasm.js): use yargs to build CLI #226

Closed mooori closed 5 months ago

mooori commented 5 months ago

Uses yargs to handle command line arguments and build a CLI. No changes in behavior.

It is now possible to show docs with node ./run-tests-zkasm.js --help which prints:

run-tests-zkasm.js <path> [outfile]

the default command runs zkASM tests

Positionals:
  path     The zkASM file to run or a directory to search for zkASM files.
                                                                        [string]
  outfile  If provided, results are written to this file. Otherwise they are
           printed to stdout.                                           [string]

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Motivation