expr: clap 3

This commit is contained in:
Terts Diepraam
2022-01-11 19:16:47 +01:00
parent 449a536c59
commit 55eb4a271b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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"
+3 -3
View File
@@ -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]