bytecodealliance / bytecodealliance/wasmtime
flag/option ordering matters in the new CLI
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 121
Description
```
@brendandburns ➜ /workspaces/dev-wasm-go (main) $ WASMTIME_NEW_CLI=1 wasmtime main.wasm --dir=.::.
Hello Go World!
Error writing open test.txt: errno 76
@brendandburns ➜ /workspaces/dev-wasm-go (main) $ WASMTIME_NEW_CLI=0 wasmtime main.wasm --dir=.
Hello Go World!
Wrote file
Copied file
```
Note that with the old CLI the wasm program works, with the new CLI it doesn't. I'm not sure if this is on purpose, but if it is what is the correct new syntax?
### Test Case
WASM file uploaded. If you want to rebuild see:
https://github.com/dev-wasm/dev-wasm-go?tab=readme-ov-file#simple-example
### Versions and Environment
Wasmtime version or commit: 15.0.1
Operating system: Linux
Architecture: amd64
[main.zip](https://github.com/bytecodealliance/wasmtime/files/13688245/main.zip)
Contributor guide
Assessment
This issue has not been assessed yet.