Skip to content

fix(cli): give faucet.enabled arg a unique clap id#5655

Merged
shekhirin merged 3 commits into
mainfrom
fix/faucet-arg-unique-id
Jun 12, 2026
Merged

fix(cli): give faucet.enabled arg a unique clap id#5655
shekhirin merged 3 commits into
mainfrom
fix/faucet-arg-unique-id

Conversation

@decofe

@decofe decofe commented Jun 12, 2026

Copy link
Copy Markdown
Member

Problem

FaucetArgs::enabled uses the default clap id enabled. The reth bump in #5564 pulls in reth's new JitArgs, which also has an enabled field, so both flatten into the node command with the same id and clap's debug assert panics on any tempo node invocation:

Command node: Argument names must be unique, but 'enabled' is in use by more than one argument or group

This is what's failing CLI smoke tests / test (1/2) / test (2/2) on #5564.

Fix

Set an explicit id = "faucet.enabled" and update the four requires/required_if_eq references to match. Adds a parse sanity test.

No behavior change — flag is still --faucet.enabled. (Companion reth PR gives JitArgs an explicit id too; either fix alone unblocks #5564.)

FaucetArgs::enabled defaulted to the clap id "enabled", which collides
with reth's new JitArgs::enabled when both are flattened into the node
command (clap debug_assert panic in tempo node --help, see reth-auto-bump
PR #5564 CI). Set an explicit id and update requires/required_if_eq refs.
@decofe decofe requested review from klkvr and mattsse as code owners June 12, 2026 15:53
@decofe

decofe commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

Companion reth PR: paradigmxyz/reth#25183

@shekhirin shekhirin changed the title fix(faucet): give faucet.enabled arg a unique clap id fix(cli): give faucet.enabled arg a unique clap id Jun 12, 2026
@shekhirin shekhirin added this pull request to the merge queue Jun 12, 2026
Merged via the queue into main with commit 4960694 Jun 12, 2026
42 of 44 checks passed
@shekhirin shekhirin deleted the fix/faucet-arg-unique-id branch June 12, 2026 16:36
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