From 5d48a48db7b805f9701851a69caf758410fe8404 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Wed, 29 Jan 2025 00:29:49 +0900 Subject: [PATCH] CLI: Use `.captureForPassthrough` for `Run` command arguments Align with the wasmtime CLI behavior --- Sources/CLI/Commands/Run.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/CLI/Commands/Run.swift b/Sources/CLI/Commands/Run.swift index 638c0bd9..e7461fae 100644 --- a/Sources/CLI/Commands/Run.swift +++ b/Sources/CLI/Commands/Run.swift @@ -104,7 +104,13 @@ struct Run: ParsableCommand { @Argument var path: String - @Argument + @Argument( + parsing: .captureForPassthrough, + help: ArgumentHelp( + "Arguments to be passed as WASI command-line arguments or function parameters", + valueName: "arguments" + ) + ) var arguments: [String] = [] func run() throws {