diff --git a/src/uu/false/Cargo.toml b/src/uu/false/Cargo.toml index 706769af6..1bc1f848e 100644 --- a/src/uu/false/Cargo.toml +++ b/src/uu/false/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" path = "src/false.rs" [dependencies] -clap = { version = "3.2", features = ["wrap_help", "cargo"] } +clap = { version = "4.0", features = ["wrap_help", "cargo"] } uucore = { version=">=0.0.16", package="uucore", path="../../uucore" } [[bin]] diff --git a/src/uu/false/src/false.rs b/src/uu/false/src/false.rs index 4b8ef36e2..3a74142e0 100644 --- a/src/uu/false/src/false.rs +++ b/src/uu/false/src/false.rs @@ -33,8 +33,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { if let Err(e) = command.try_get_matches_from_mut(args) { let error = match e.kind() { - clap::ErrorKind::DisplayHelp => command.print_help(), - clap::ErrorKind::DisplayVersion => { + clap::error::ErrorKind::DisplayHelp => command.print_help(), + clap::error::ErrorKind::DisplayVersion => { writeln!(std::io::stdout(), "{}", command.render_version()) } _ => Ok(()), @@ -50,7 +50,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { Ok(()) } -pub fn uu_app<'a>() -> Command<'a> { +pub fn uu_app() -> Command { Command::new(uucore::util_name()) .version(clap::crate_version!()) .about(ABOUT)