WebAssembly / WebAssembly/binaryen
[wasm-merge] Does not print to stdout if `-o` is not specified
Open
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 8.6k
- Forks
- 885
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 69
Description
I finally have a use-case for wasm-merge and trying to use it made me think the tool was broken! (It is not).
It says:
wasm-merge options:
-------------------
--output,-o Output file (stdout if not specified)
However, if you don’t specify -o nothing gets printed. -o - makes it print to stdout as expected. I suspect the default value for this flag is not implemented?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wasm-merge handling for the --output/-o option and compare the behavior when it is omitted with the explicit -o - case. Confirm that the documented default is stdout, then add or update coverage for both invocation forms so the tool prints when no output file is specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- cli, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100