8000 Recognize standard input placeholders in CLI arguments by Aschenbath · Pull Request #169 · kawanet/msgpack-lite · GitHub
[go: up one dir, main page]

Skip to content

Recognize standard input placeholders in CLI arguments - #169

Open
Aschenbath wants to merge 1 commit into
kawanet:mainfrom
Aschenbath:fix/oss-20-20261125-77d1-msgpack-cli-stdio
Open

Aschenbath wants to merge 1 commit into
kawanet:mainfrom
Aschenbath:fix/oss-20-20261125-77d1-msgpack-cli-stdio

Conversation

@Aschenbath
Copy link
Copy Markdown
Contributor

msgpack -Jm - output.msp currently treats - as an option, then tries to read output.msp as input. A missing output file produces ENOENT, and an existing one supplies the wrong input.

Keep a lone dash in the positional argument parser so the existing standard input/output handling can recognize it. Add a README example and CLI integration coverage for stdin-to-file conversion and explicit stdin/stdout placeholders. The stdin-to-file test fails on unchanged main.

Validation on Node 24.22.0 / Windows: all 205 tests pass, plus JSHint, the deprecation check, browser build/minification, and the bundle export/size smoke checks. These are the make test steps invoked directly because make is unavailable on this host.

Prepared with OpenAI Codex assistance; reproduced and reviewed against the implementation and tests.

This branch has not been deployed

No deployments
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.

1 participant

0