Skip to content

Commit

Permalink
Migrate to clap v3.0.0
Browse files Browse the repository at this point in the history
This patch replaces structopt with clap v3.0.0.
  • Loading branch information
robinkrahl committed Dec 10, 2021
1 parent 754eeb4 commit 45e1cd8
Show file tree
Hide file tree
Showing 68 changed files with 1,741 additions and 1,012 deletions.
90 changes: 78 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ version = "1.0"
[dependencies.base32]
version = "0.4.0"

[dependencies.clap]
version = "3.0.0-rc.0"
default-features = false
features = ["derive", "std", "unicode"]

[dependencies.clap_generate]
version = "3.0.0-rc.0"

[dependencies.directories]
version = "3"

Expand Down
2 changes: 1 addition & 1 deletion src/arg_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ macro_rules! Command {
$( $(#[$doc:meta])* $var:ident$(($inner:ty))? => $exec:expr, ) *
] ) => {
$(#[$docs])*
#[derive(Debug, PartialEq, structopt::StructOpt)]
#[derive(Debug, PartialEq, clap::StructOpt)]
pub enum $name {
$(
$(#[$doc])*
Expand Down
Loading

0 comments on commit 45e1cd8

Please sign in to comment.