CLI: clap-based parser and parse_cli_args() helper #15
Labels
No labels
area:assertions
area:cli
area:client
area:harness
area:meta
area:reporting
area:runner
type:user-story
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/ws-rpc-test#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a test-binary author, I want a one-liner that wires CLI flags into
RunConfig(and optionally overrides harness config), so that I don't write argument parsing boilerplate in every test binary.Acceptance criteria
Clistruct withclapderive supporting all options listed in spec §7:--binary <PATH>--host <HOST>(default127.0.0.1)--port <PORT>(default9820)--health-url <URL>--ws-url <URL>--token <TOKEN>--filter <PATTERN>--tag <TAG>--fail-fast--timeout <SECS>(default 60)--format <FORMAT>— one ofconsole,json,junit(case-insensitive); defaultconsole--no-color--startup-timeout <SECS>(default 15)-v / --verbose--parallelrunner.parse_cli_args()parsesstd::env::args(), applies the result to its internalRunConfig, and overrides harness fields (commandfrom--binary,health_url,ws_url, etc.) when present.--filterand--tagpopulateRunConfig.filter/tag.--formatvalue produces a clean clap error message, not a panic.--helptext is descriptive; each flag has a help line.clapis gated behind aclifeature, on by default, so consumers who provide their own arg parser can disable it.RunConfigand harness overrides.Resolves
Spec review §9 (clap unlisted in dependencies — will be added via this story).
References