Skip to content

Commit 6b3cc3b

Browse files
committed
Review comments
1 parent e614146 commit 6b3cc3b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/cli-options.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ as well as the text format for WebAssembly (`*.wat`):
4444
wasmtime foo.wat
4545
```
4646

47-
#### Running "Command" Wasms
47+
#### Running WebAssembly CLI programs
4848

49-
WebAssembly modules or components can behave like a "command" which means
49+
WebAssembly modules or components can behave like a CLI program which means
5050
they're intended to look like a normal OS executable with a `main` function and
5151
run once to completion. This is the default mode of running a wasm provided to
5252
Wasmtime.
@@ -55,24 +55,24 @@ For core WebAssembly modules this means that the function exported as an empty
5555
string, or the `_start` export, is invoked. For WebAssembly components this
5656
means that the `wasi:cli/run` interface is executed.
5757

58-
For both core modules and components CLI arguments are passed via WASI. Core
58+
For both core modules and components, CLI arguments are passed via WASI. Core
5959
modules receive arguments via WASIp1 APIs and components receive arguments via
60-
WASIp2 or later APIs. Arguments, flags, etc, are passed to the WebAssembly file
61-
after the file itself. For example:
60+
WASIp2 or later APIs. Arguments, flags, etc., are passed to the WebAssembly file
61+
after the file itself. For example,
6262

6363
```console
6464
wasmtime foo.wasm --bar baz
6565
```
6666

6767
Will pass `["foo.wasm", "--bar", "baz"]` as the list of arguments to the module.
6868
Note that flags for Wasmtime must be passed before the WebAssembly file, not
69-
afterwards. For example
69+
afterwards. For example,
7070

7171
```console
7272
wasmtime foo.wasm --dir .
7373
```
7474

75-
will pass `--dir .` to the `foo.wasm` program, not Wasmtime. If you want to
75+
Will pass `--dir .` to the `foo.wasm` program, not Wasmtime. If you want to
7676
mount the current directory you instead need to invoke
7777

7878
```console

0 commit comments

Comments
 (0)