Skip to content

refactor(cli): validate cli arguments with clap - #1235

Open
0xKitsune wants to merge 4 commits into
mainfrom
kit/clap-parsing
Open

refactor(cli): validate cli arguments with clap#1235
0xKitsune wants to merge 4 commits into
mainfrom
kit/clap-parsing

Conversation

@0xKitsune

Copy link
Copy Markdown
Collaborator

This PR moves node CLI validation into Clap parsers and removes the deprecated zone ID argument.

@0xKitsune 0xKitsune changed the title Validate node CLI arguments with Clap refactor(cli): validate cli arguments with clap Aug 20, 2026
@0xKitsune
0xKitsune marked this pull request as ready for review August 20, 2026 21:49
@0xKitsune

Copy link
Copy Markdown
Collaborator Author

cyclops audit super-fast

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

cc @0xKitsune

Cyclops audit event published. View workflow run

Config: config: pr-review-super-fast.yaml, iterations: 1, hours: default

@tempoxyz-bot tempoxyz-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️ Cyclops Review

This change correctly moves L1 WebSocket URL validation into Clap parsing, but deleting the adjacent portal-address validation exposes a test/dev sentinel through production CLI configuration.

Reviewer Callouts
  • Deprecated --zone.id removal: Existing deployment manifests or CI that still pass this flag will fail argument parsing; confirm all consumers have migrated.
  • Zero-address sentinel: Consider replacing Address::ZERO as the test/dev mode marker with a distinct configuration type.

Comment thread crates/node/src/cli.rs
@0xalpharush

Copy link
Copy Markdown
Contributor

+1

@tempo-voight-kampff tempo-voight-kampff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @0xalpharush, who approved this pull request with a +1 comment via Voight-Kampff (head acfa726e09f5).

GitHub branch protection considers pull request reviews, not +1 comments. Voight-Kampff is recording this approval on the reviewer's behalf so branch protection requirements are met.

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.

3 participants