bytecodealliance / bytecodealliance/WASI-Virt
Update the version CLI argument parser to accept "p2"
- Dominant language
- Rust
- Stars
- 235
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
PR #164 modified WASI-Virt to work with WASI version "p2" (that is: any WASI version in the `0.2.x` series). The CLI argument processing will need to be updated accordingly.
--------
> I think we should update [src/bin/wasi-virt.rs](https://github.com/bytecodealliance/WASI-Virt/blob/main/src/bin/wasi-virt.rs#L228-L233) to accept the `p#` formatted instead of `0.2.12`. Otherwise it's a bit confusing misleading since you really only have 1 choice.
_Originally posted by @ryan-surname-p in https://github.com/bytecodealliance/WASI-Virt/issues/164#issuecomment-5118228046_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in src/bin/wasi-virt.rs at the CLI argument-processing code around lines 228-233 and inspect how the WASI version argument is parsed. Update the accepted format so p2 is recognized for the 0.2.x WASI series, then verify the CLI accepts p2 and still handles its documented version input correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100