diff --git a/tools/build-wasm-example/Cargo.toml b/tools/build-wasm-example/Cargo.toml index b0bf1bcffd2930..6496c0fbb1b96d 100644 --- a/tools/build-wasm-example/Cargo.toml +++ b/tools/build-wasm-example/Cargo.toml @@ -9,4 +9,4 @@ license = "MIT OR Apache-2.0" [dependencies] xshell = "0.2" -clap = { version = "3.2", features = ["derive"] } +clap = { version = "4.0", features = ["derive"] } diff --git a/tools/build-wasm-example/src/main.rs b/tools/build-wasm-example/src/main.rs index a86e7c8872c489..2124e752995306 100644 --- a/tools/build-wasm-example/src/main.rs +++ b/tools/build-wasm-example/src/main.rs @@ -6,18 +6,17 @@ use xshell::{cmd, Shell}; #[derive(Parser, Debug)] struct Args { /// Examples to build - #[clap(value_parser)] examples: Vec, - #[clap(short, long, value_parser)] + #[arg(short, long)] /// Run tests test: bool, - #[clap(short, long, value_parser)] + #[arg(short, long)] /// Run on the given browsers. By default, chromium, firefox, webkit browsers: Vec, - #[clap(short, long, value_parser)] + #[arg(short, long)] /// Stop after this number of frames frames: Option, } diff --git a/tools/spancmp/Cargo.toml b/tools/spancmp/Cargo.toml index 613d786780d9a2..7a2464691addc0 100644 --- a/tools/spancmp/Cargo.toml +++ b/tools/spancmp/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -clap = { version = "3.2", features = ["derive"] } +clap = { version = "4.0", features = ["derive"] } regex = "1.5" termcolor = "1.1" bevy_utils = { path = "../../crates/bevy_utils", version = "0.9.0-dev" } diff --git a/tools/spancmp/src/main.rs b/tools/spancmp/src/main.rs index 540c50f1b1bdd7..8cff9555780ec1 100644 --- a/tools/spancmp/src/main.rs +++ b/tools/spancmp/src/main.rs @@ -15,22 +15,20 @@ mod pretty; #[derive(Parser, Debug)] struct Args { - #[clap(short, long, value_parser, default_value_t = 0.0)] + #[arg(short, long, default_value_t = 0.0)] /// Filter spans that have an average shorther than the threshold threshold: f32, - #[clap(short, long, value_parser)] + #[arg(short, long)] /// Filter spans by name matching the pattern pattern: Option, - #[clap(short, long, value_parser)] + #[arg(short, long)] /// Simplify system names short: bool, - #[clap(value_parser)] trace: String, /// Optional, second trace to compare - #[clap(value_parser)] second_trace: Option, }