1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-17 20:26:18 +00:00

expr: clap 3

This commit is contained in:
Terts Diepraam 2022-01-11 13:28:19 +01:00
parent 449a536c59
commit 55eb4a271b
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ edition = "2018"
path = "src/expr.rs" path = "src/expr.rs"
[dependencies] [dependencies]
clap = { version = "2.33", features = ["wrap_help"] } clap = { version = "3.0", features = ["wrap_help", "cargo"] }
libc = "0.2.42" libc = "0.2.42"
num-bigint = "0.4.0" num-bigint = "0.4.0"
num-traits = "0.2.14" num-traits = "0.2.14"

View file

@ -15,10 +15,10 @@ mod tokens;
const VERSION: &str = "version"; const VERSION: &str = "version";
const HELP: &str = "help"; const HELP: &str = "help";
pub fn uu_app() -> App<'static, 'static> { pub fn uu_app<'a>() -> App<'a> {
App::new(uucore::util_name()) App::new(uucore::util_name())
.arg(Arg::with_name(VERSION).long(VERSION)) .arg(Arg::new(VERSION).long(VERSION))
.arg(Arg::with_name(HELP).long(HELP)) .arg(Arg::new(HELP).long(HELP))
} }
#[uucore_procs::gen_uumain] #[uucore_procs::gen_uumain]