mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
test: update to clap 4
This commit is contained in:
parent
b15c6eb293
commit
72d7287b11
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ edition = "2021"
|
||||||
path = "src/test.rs"
|
path = "src/test.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "3.2", features = ["wrap_help", "cargo"] }
|
clap = { version = "4.0", features = ["wrap_help", "cargo"] }
|
||||||
libc = "0.2.135"
|
libc = "0.2.135"
|
||||||
uucore = { version=">=0.0.16", package="uucore", path="../../uucore" }
|
uucore = { version=">=0.0.16", package="uucore", path="../../uucore" }
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ for details about the options it supports.";
|
||||||
|
|
||||||
const ABOUT: &str = "Check file types and compare values.";
|
const ABOUT: &str = "Check file types and compare values.";
|
||||||
|
|
||||||
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)
|
||||||
|
|
|
@ -903,7 +903,7 @@ fn test_bracket_syntax_help() {
|
||||||
let scenario = TestScenario::new("[");
|
let scenario = TestScenario::new("[");
|
||||||
let mut ucmd = scenario.ucmd();
|
let mut ucmd = scenario.ucmd();
|
||||||
|
|
||||||
ucmd.arg("--help").succeeds().stdout_contains("USAGE:");
|
ucmd.arg("--help").succeeds().stdout_contains("Usage:");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue