Skip to content

Commit 7e3a221

Browse files
committed
clap fixes
1 parent ddc1a63 commit 7e3a221

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ci/svd2rust-regress/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "0.1.0"
55
authors = ["James Munns <[email protected]>", "The svd2rust developers"]
66

77
[dependencies]
8-
clap = { version = "4.1", features = ["derive"] }
8+
clap = { version = "4.1", features = ["color", "derive"] }
99
svd2rust = { path = "../../" }
1010
reqwest = { version = "0.11", features= ["blocking"] }
1111
rayon = "1.4"

ci/svd2rust-regress/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ use std::sync::atomic::{AtomicBool, Ordering};
1616
use std::time::Instant;
1717

1818
#[derive(Parser, Debug)]
19-
#[structopt(name = "svd2rust-regress")]
19+
#[command(name = "svd2rust-regress")]
2020
struct Opt {
2121
/// Run a long test (it's very long)
22-
#[clap(short = 'l', long = "long-test")]
22+
#[clap(short = 'l', long)]
2323
long_test: bool,
2424

2525
/// Path to an `svd2rust` binary, relative or absolute.
@@ -55,7 +55,7 @@ struct Opt {
5555
arch: Option<String>,
5656

5757
/// Include tests expected to fail (will cause a non-zero return code)
58-
#[clap(short = 'b', long = "bad-tests")]
58+
#[clap(short = 'b', long)]
5959
bad_tests: bool,
6060

6161
/// Enable formatting with `rustfmt`

0 commit comments

Comments
 (0)