mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
unlink: update to clap 4
This commit is contained in:
parent
23c8d8b0ea
commit
12048cda68
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ edition = "2021"
|
||||||
path = "src/unlink.rs"
|
path = "src/unlink.rs"
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
uucore = { version=">=0.0.16", package="uucore", path="../../uucore" }
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|
|
@ -29,7 +29,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
remove_file(path).map_err_context(|| format!("cannot unlink {}", path.quote()))
|
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())
|
Command::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
|
|
|
@ -31,7 +31,7 @@ fn test_unlink_multiple_files() {
|
||||||
ucmd.arg(file_a)
|
ucmd.arg(file_a)
|
||||||
.arg(file_b)
|
.arg(file_b)
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_contains("USAGE");
|
.stderr_contains("Usage");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue