mirror of
https://github.com/uutils/coreutils
synced 2024-12-12 22:32:53 +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"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "3.2", features = ["wrap_help", "cargo"] }
|
||||
clap = { version = "4.0", features = ["wrap_help", "cargo"] }
|
||||
libc = "0.2.135"
|
||||
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.";
|
||||
|
||||
pub fn uu_app<'a>() -> Command<'a> {
|
||||
pub fn uu_app() -> Command {
|
||||
Command::new(uucore::util_name())
|
||||
.version(crate_version!())
|
||||
.about(ABOUT)
|
||||
|
|
|
@ -903,7 +903,7 @@ fn test_bracket_syntax_help() {
|
|||
let scenario = TestScenario::new("[");
|
||||
let mut ucmd = scenario.ucmd();
|
||||
|
||||
ucmd.arg("--help").succeeds().stdout_contains("USAGE:");
|
||||
ucmd.arg("--help").succeeds().stdout_contains("Usage:");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue