Skip to content

Add support for wasmtime run --argv0 NAME ...#8961

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:argv0
Jul 15, 2024
Merged

Add support for wasmtime run --argv0 NAME ...#8961
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:argv0

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit adds support for a new --argv0 flag to the wasmtime run CLI (and only wasmtime run, not other subcommands). This flag is used to override the inferred value of the first argument which is sometimes used to dispatch on various pieces of functionality. This enables avoiding the need to copy around wasm files.

Closes #8955

This commit adds support for a new `--argv0` flag to the `wasmtime run`
CLI (and only `wasmtime run`, not other subcommands). This flag is used
to override the inferred value of the first argument which is sometimes
used to dispatch on various pieces of functionality. This enables
avoiding the need to copy around wasm files.

Closes bytecodealliance#8955
@alexcrichton alexcrichton requested a review from a team as a code owner July 15, 2024 21:32
@alexcrichton alexcrichton requested review from elliottt and removed request for a team July 15, 2024 21:32
@alexcrichton alexcrichton added this pull request to the merge queue Jul 15, 2024
Merged via the queue into bytecodealliance:main with commit af95475 Jul 15, 2024
@alexcrichton alexcrichton deleted the argv0 branch July 15, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overriding argv[0] for wasmtime run

2 participants