Skip to content

Commit

Permalink
Mention --invoke on "CLI Options for wasmtime" page (#3828)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Feb 17, 2022
1 parent 8ab07fe commit 5ff1dde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ff1dde

Please sign in to comment.