unlink: update to clap 4

This commit is contained in:
Terts Diepraam 2022-10-01 11:59:07 +02:00
parent 23c8d8b0ea
commit 12048cda68
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ edition = "2021"
path = "src/unlink.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]]

View file

@ -29,7 +29,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
remove_file(path).map_err_context(|| format!("cannot unlink {}", path.quote()))
}
pub fn uu_app<'a>() -> Command<'a> {
pub fn uu_app() -> Command {
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)

View file

@ -31,7 +31,7 @@ fn test_unlink_multiple_files() {
ucmd.arg(file_a)
.arg(file_b)
.fails()
.stderr_contains("USAGE");
.stderr_contains("Usage");
}
#[test]