You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use clap::Parser;#[derive(Parser)]pubstructArgs{/// Input delimiter#[structopt(short, long, default_value = ",")]pubdelimiter:String,#[structopt(short, long)]pubflexible:bool,/// Abc#[structopt(short, long = "abece")]pubabc:Vec<String>,}
Steps to reproduce the bug with the above code
cargo update
cargo build
Actual Behaviour
warning: use of deprecated unit variant `clap::ArgAction::StoreValue`: Replaced with `ArgAction::Set` or `ArgAction::Append`
--> src/lib.rs:5:5
|
5 | /// Input delimiter
| ^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated unit variant `clap::ArgAction::StoreValue`: Replaced with `ArgAction::Set` or `ArgAction::Append`
--> src/lib.rs:10:5
|
10 | /// Abc
| ^^^^^^^
warning: use of deprecated associated function `clap::ArgMatches::is_present`: Replaced with either `ArgAction::SetTrue` or `ArgMatches::contains_id(...)`
--> src/lib.rs:9:19
|
9 | pub flexible: bool,
| ^^^^
warning: use of deprecated associated function `clap::Arg::<'help>::validator`: Replaced with `Arg::value_parser(...)`
--> src/lib.rs:5:5
|
5 | /// Input delimiter
| ^^^^^^^^^^^^^^^^^^^
warning: use of deprecated associated function `clap::Arg::<'help>::multiple_occurrences`: Replaced with `Arg::action` (Issue #3772)
--> src/lib.rs:12:14
|
12 | pub abc: Vec<String>,
| ^^^
warning: use of deprecated associated function `clap::Arg::<'help>::validator`: Replaced with `Arg::value_parser(...)`
--> src/lib.rs:10:5
|
10 | /// Abc
| ^^^^^^^
Expected Behaviour
no warnings
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered:
Ten0
changed the title
Using clap derive triggers a ton of deprecation warnings
Using clap derive triggers a ton of deprecation warnings since 3.2
Jun 13, 2022
In addition there's no other open issue since 3.2 was released and introduced this issue a few hours ago, so I don't see how this can be a duplicate of anything.
Please complete the following tasks
Rust Version
Latest stable (1.61)
Clap Version
3.2.1
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
Expected Behaviour
no warnings
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: