lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

Migrate #[clap(...)] to #[arg(...)] / #[command(...)] in clap 4.x

Open Himess opened this issue 8 months ago • 0 comments

In clap version 4.x and above, the use of #[clap(...)] is no longer valid.
Many instances of #[clap(...)] are still present in the project.
These should be replaced with #[arg(...)] or #[command(...)].

I ran the following command to check for deprecated clap attributes:

cargo check --features clap/deprecated

The following warnings were generated:

Image

Himess avatar Mar 20 '25 00:03 Himess