Skip to content

Commit 4f5408d

Browse files
robinkrahld-e-s-o
authored andcommitted
Migrate to clap v3.0.0
This patch replaces structopt with clap v3.0.0.
1 parent 11c072b commit 4f5408d

File tree

68 files changed

+1775
-1009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1775
-1009
lines changed

Cargo.lock

Lines changed: 112 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ version = "1.0"
4545
[dependencies.base32]
4646
version = "0.5.1"
4747

48+
[dependencies.clap]
49+
version = "3.0.0-rc.0"
50+
default-features = false
51+
features = ["derive", "std", "unicode"]
52+
53+
[dependencies.clap_generate]
54+
version = "3.0.0-rc.0"
55+
4856
[dependencies.directories]
4957
version = "5"
5058

src/arg_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ macro_rules! Command {
2222
$( $(#[$doc:meta])* $var:ident$(($inner:ty))? => $exec:expr, ) *
2323
] ) => {
2424
$(#[$docs])*
25-
#[derive(Debug, PartialEq, structopt::StructOpt)]
25+
#[derive(Debug, PartialEq, clap::StructOpt)]
2626
pub enum $name {
2727
$(
2828
$(#[$doc])*

0 commit comments

Comments
 (0)