chore: upgrade clap to v4 (#17333)

This commit is contained in:
Leo Kettmeir 2023-03-26 06:06:18 +02:00 committed by GitHub
parent 8a4865c379
commit 33362b88c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 768 additions and 948 deletions

View file

@ -253,8 +253,8 @@ pub fn main() {
let flags = match flags_from_vec(args) {
Ok(flags) => flags,
Err(err @ clap::Error { .. })
if err.kind() == clap::ErrorKind::DisplayHelp
|| err.kind() == clap::ErrorKind::DisplayVersion =>
if err.kind() == clap::error::ErrorKind::DisplayHelp
|| err.kind() == clap::error::ErrorKind::DisplayVersion =>
{
err.print().unwrap();
std::process::exit(0);