Upgrade clap to v4

Close #2846

4.0.0 changelog: 'https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#400---2022-09-28'

I followed the [Migrating steps](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#migrating) and the only issue I encountered are:
1. The typo problem in previous commit "Fix clap ArgGroup typo"
2. I can't say I am 100% sure every [Subtle changes](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#breaking-changes) is fine for our use case, but at least after a quick read I didn't notice anything actionable.
This commit is contained in:
Lawrence Chou 2022-10-04 21:46:27 +08:00
parent 6285c5949c
commit 9e5ef8eb69
No known key found for this signature in database
GPG key ID: 56B65EC9D482438D
3 changed files with 47 additions and 10 deletions

View file

@ -31,7 +31,7 @@ async-trait = "0.1.57"
bstr = "1.0.1"
byte-unit = { version = "4.0.14", default-features = false, features = ["std", "serde"] }
bytes = "1.2.1"
clap = { version = "3.2.8", features = ["derive", "env"] }
clap = { version = "4.0.9", features = ["derive", "env"] }
crossbeam-channel = "0.5.6"
either = "1.8.0"
env_logger = "0.9.1"