diff --git a/src/uu/expr/Cargo.toml b/src/uu/expr/Cargo.toml index ee34112bd..6f081a257 100644 --- a/src/uu/expr/Cargo.toml +++ b/src/uu/expr/Cargo.toml @@ -15,7 +15,7 @@ edition = "2018" path = "src/expr.rs" [dependencies] -clap = { version = "2.33", features = ["wrap_help"] } +clap = { version = "3.0", features = ["wrap_help", "cargo"] } libc = "0.2.42" num-bigint = "0.4.0" num-traits = "0.2.14" diff --git a/src/uu/expr/src/expr.rs b/src/uu/expr/src/expr.rs index 6e2a8701a..8acd00d62 100644 --- a/src/uu/expr/src/expr.rs +++ b/src/uu/expr/src/expr.rs @@ -15,10 +15,10 @@ mod tokens; const VERSION: &str = "version"; const HELP: &str = "help"; -pub fn uu_app() -> App<'static, 'static> { +pub fn uu_app<'a>() -> App<'a> { App::new(uucore::util_name()) - .arg(Arg::with_name(VERSION).long(VERSION)) - .arg(Arg::with_name(HELP).long(HELP)) + .arg(Arg::new(VERSION).long(VERSION)) + .arg(Arg::new(HELP).long(HELP)) } #[uucore_procs::gen_uumain]