espresso-sequencer icon indicating copy to clipboard operation
espresso-sequencer copied to clipboard

Update deprecated #[clap(...)] and #[arg(name = ...)] usages to clap 4.x standards

Open Himess opened this issue 7 months ago • 0 comments

Many #[clap(...)] and #[arg(...)] attributes in the project are still using syntax deprecated since clap 4.0. This includes:

#[clap(...)] → should be replaced with #[command(...)] or #[arg(...)]

#[arg(action)] → removed, since action is now the default in clap v4

#[arg(name = "...")] → should be updated to #[arg(id = "...")] or #[arg(value_name = "...")]

Deprecated usage of value_parser and action which are now default in clap 4.x and no longer needed.

Errors:

Image

Image

Image

Himess avatar Mar 24 '25 01:03 Himess