Skip to content

Commit

Permalink
Update some CLI usage help texts
Browse files Browse the repository at this point in the history
Updating a few locations that I missed from the previous updates.
  • Loading branch information
alexcrichton committed Oct 30, 2023
1 parent 79c6615 commit 8df30a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/lang-bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function gcd() {
local x=$(($1))
local y=$(($2))
# Invoke GCD from module; suppress stderr
local result=$(wasmtime examples/gcd.wat --invoke gcd $x $y 2>/dev/null)
local result=$(wasmtime --invoke gcd examples/gcd.wat $x $y 2>/dev/null)
echo "$result"
}

Expand Down
2 changes: 1 addition & 1 deletion src/bin/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use clap::Parser;
\n\
Invoking a specific function (e.g. `add`) in a WebAssembly module:\n\
\n \
wasmtime example.wasm --invoke add 1 2\n",
wasmtime --invoke add example.wasm 1 2\n",
// This option enables the pattern below where we ask clap to parse twice
// sorta: once where it's trying to find a subcommand and once assuming
Expand Down

0 comments on commit 8df30a0

Please sign in to comment.