Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): fix clap deprecated warnings #6872

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Conversation

DaniPopes
Copy link
Member

Fix all warnings reported by cargo check --features clap/deprecated, see individual commits

warning: use of deprecated function `<commands::db::get::Command as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]`
  --> bin/reth/src/commands/db/get.rs:27:7
   |
27 |     #[clap(long)]
   |       ^^^^
   |
   = note: `#[warn(deprecated)]` on by default
warning: use of deprecated function `<args::network_args::DiscoveryArgs as clap::Args>::augment_args::id_is_only_for_arg`: `#[arg(name)] was allowed by mistake, instead use `#[arg(id)]` or `#[arg(value_name)]`
   --> crates/node-core/src/args/network_args.rs:218:36
    |
218 |     #[arg(long = "discovery.port", name = "discovery.port", value_name = "DISCOVERY_PORT", default_value_t = DEFAULT_DISCOVERY_PORT)]
    |                                    ^^^^
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

but I want to wait until we have #5191

rebase this PR should be easier

@mattsse mattsse added S-blocked This cannot more forward until something else changes A-cli Related to the reth CLI labels Feb 29, 2024
@shekhirin shekhirin added C-debt Refactor of code section that is hard to understand or maintain and removed S-blocked This cannot more forward until something else changes labels Feb 29, 2024
@shekhirin shekhirin added this pull request to the merge queue Feb 29, 2024
Merged via the queue into main with commit 17818e7 Feb 29, 2024
29 checks passed
@shekhirin shekhirin deleted the dani/clap-deprecated branch February 29, 2024 13:34
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants