This repository was archived by the owner on Oct 9, 2026. It is now read-only.
Repository navigation
Parse the CLI with typed clap derive structs - #55
Merged
Merged
Conversation
No behavior change. The CLI is about to move from hand-built Commands to typed derive structs. AI assistance: Claude Code. Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09 Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
No behavior change. Cli, Command, ConfigArgs and ConfigCommand describe the same arguments the builder below defines: the same help strings, groups and conflicts, and the builder's lowercase value names (`<repo>`, `[items]...`) spelled out so help, usage and errors stay byte-identical. Nothing uses them yet. AI assistance: Claude Code. Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09 Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
No behavior change. The builder and every get_flag("...") /
get_one().unwrap() lookup give way to field access on the parsed Cli; the
config subcommand becomes an enum match, so the unreachable "unknown config
command" arm goes. The split at `--` before parsing is kept as is.
AI assistance: Claude Code.
Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09
Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
No behavior change. options.rs's second hand-built Command becomes a `#[derive(Parser)]` struct with the same name, usage, version strings, alphabetical option order and env vars; main still dispatches on argv[1] == "debug" and parse_args still returns a Mode. AI assistance: Claude Code. Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09 Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
sidkmenon
added this pull request to stack #59
September 30, 2026 16:28
sidkmenon
marked this pull request as ready for review
September 30, 2026 17:11
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack created with GitHub Stacks CLI • Give Feedback 💬