Skip to content

chore: Fix --version flag in subcommands#1149

Merged
usmansaleem merged 3 commits intoConsensys:masterfrom
usmansaleem:version_subcommands
Jan 15, 2026
Merged

chore: Fix --version flag in subcommands#1149
usmansaleem merged 3 commits intoConsensys:masterfrom
usmansaleem:version_subcommands

Conversation

@usmansaleem
Copy link
Copy Markdown
Collaborator

@usmansaleem usmansaleem commented Jan 11, 2026

PR Description

Fix --version flag in subcommands

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

  • I thought about testing these changes in a realistic/non-local environment.

Note

Ensures --version works consistently on root and subcommands.

  • Add versionProvider = VersionProvider.class to Eth1SubCommand, Eth2SubCommand, Eth2ExportSubCommand, Eth2ImportSubCommand, and Eth2WatermarkRepairSubCommand
  • Update and rename test to CommandLineParserHelpAndVersionUsageTest, asserting version output for main command and eth1/eth2 subcommands

Written by Cursor Bugbot for commit e5aad40. This will update automatically on new commits. Configure here.

@usmansaleem usmansaleem merged commit 16b773a into Consensys:master Jan 15, 2026
8 checks passed
@usmansaleem usmansaleem deleted the version_subcommands branch January 15, 2026 02:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants