Mention --invoke on "CLI Options for wasmtime" page (#3828)

* Document the invoke argument of the run command.

* Update docs/cli-options.md

Co-authored-by: Kyle Brown <kyleb@liquidrocketry.com>
Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
This commit is contained in:
Kyle Brown
2022-02-17 15:55:11 -05:00
committed by GitHub
parent 8ab07fe51a
commit 5ff1ddee5b

View File

@@ -45,6 +45,13 @@ as well as the text format for WebAssembly (`*.wat`):
$ wasmtime foo.wat
```
The `run` command accepts an optional `invoke` argument which is the name of
an exported function of the module to run.
```sh
$ wasmtime run foo.wasm --invoke initialize
```
## `wast`
The `wast` command executes a `*.wast` file which is the test format for the