Skip to content

Commit

Permalink
upgrade clap to 4.0
Browse files Browse the repository at this point in the history
In order to use derive API to refactor, we upgrade clap firstly.

Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
  • Loading branch information
uran0sH committed Oct 29, 2022
1 parent 01317e1 commit e8516c9
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 392 deletions.
99 changes: 68 additions & 31 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rlimit = "0.8.3"
log = "0.4.8"
libc = "0.2"
vmm-sys-util = "0.10.0"
clap = "2.33"
clap = {version = "4.0.18", features = ["derive", "cargo"]}
serde = { version = "1.0.110", features = ["serde_derive", "rc"] }
serde_json = "1.0.51"
sha2 = "0.10.2"
Expand Down
4 changes: 2 additions & 2 deletions contrib/nydus-backend-proxy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ async fn main() {
.version(crate_version!())
.about("A simple HTTP server to provide a fake container registry for nydusd.")
.arg(
Arg::with_name("blobsdir")
Arg::new("blobsdir")
.short("b")
.long("blobsdir")
.takes_value(true)
.action(ArgAction::Set)
.help("path to directory hosting nydus blob files"),
)
.get_matches();
Expand Down
Loading

0 comments on commit e8516c9

Please sign in to comment.