Skip to content

Commit 5ff1dde

Browse files
esoterraKyle Brownfitzgen
authored
Mention --invoke on "CLI Options for wasmtime" page (bytecodealliance#3828)
* Document the invoke argument of the run command. * Update docs/cli-options.md Co-authored-by: Kyle Brown <[email protected]> Co-authored-by: Nick Fitzgerald <[email protected]>
1 parent 8ab07fe commit 5ff1dde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/cli-options.md

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ as well as the text format for WebAssembly (`*.wat`):
4545
$ wasmtime foo.wat
4646
```
4747

48+
The `run` command accepts an optional `invoke` argument which is the name of
49+
an exported function of the module to run.
50+
51+
```sh
52+
$ wasmtime run foo.wasm --invoke initialize
53+
```
54+
4855
## `wast`
4956

5057
The `wast` command executes a `*.wast` file which is the test format for the

0 commit comments

Comments
 (0)