From 5ff1ddee5b36dfb239c87aa92c24d074b2b6cac7 Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Thu, 17 Feb 2022 15:55:11 -0500 Subject: [PATCH] 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 Co-authored-by: Nick Fitzgerald --- docs/cli-options.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/cli-options.md b/docs/cli-options.md index a5d5062055..d6ffe74adc 100644 --- a/docs/cli-options.md +++ b/docs/cli-options.md @@ -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