mirror of
https://github.com/uutils/coreutils
synced 2024-09-16 06:21:12 +00:00
unlink: update to clap 4
This commit is contained in:
parent
23c8d8b0ea
commit
12048cda68
|
@ -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]]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -31,7 +31,7 @@ fn test_unlink_multiple_files() {
|
|||
ucmd.arg(file_a)
|
||||
.arg(file_b)
|
||||
.fails()
|
||||
.stderr_contains("USAGE");
|
||||
.stderr_contains("Usage");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue