Skip to content

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

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

Open
Himess opened this issue Mar 24, 2025 · 0 comments · May be fixed by #3224
Open

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

Himess opened this issue Mar 24, 2025 · 0 comments · May be fixed by #3224

Comments

@Himess
Copy link

Himess commented Mar 24, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant