Skip to content

Commit 57b36cc

Browse files
CLI: Use .captureForPassthrough for Run command arguments
Align with the wasmtime CLI behavior
1 parent 34ae4c8 commit 57b36cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/CLI/Commands/Run.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ struct Run: ParsableCommand {
104104
@Argument
105105
var path: String
106106

107-
@Argument
107+
@Argument(
108+
parsing: .captureForPassthrough,
109+
help: ArgumentHelp(
110+
"Arguments to be passed as WASI command-line arguments or function parameters",
111+
valueName: "arguments"
112+
)
113+
)
108114
var arguments: [String] = []
109115

110116
func run() throws {

0 commit comments

Comments
 (0)