mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-17 04:06:18 +00:00
pr: clap 3
This commit is contained in:
parent
f260f60093
commit
4edab26dcc
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ edition = "2018"
|
|||
path = "src/pr.rs"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "2.33", features = ["wrap_help"] }
|
||||
clap = { version = "3.0", features = ["wrap_help", "cargo"] }
|
||||
uucore = { version=">=0.0.7", package="uucore", path="../../uucore", features=["entries"] }
|
||||
uucore_procs = { version=">=0.0.7", package="uucore_procs", path="../../uucore_procs" }
|
||||
getopts = "0.2.21"
|
||||
|
|
|
@ -13,6 +13,7 @@ extern crate quick_error;
|
|||
|
||||
use chrono::offset::Local;
|
||||
use chrono::DateTime;
|
||||
use clap::App;
|
||||
use getopts::Matches;
|
||||
use getopts::{HasArg, Occur};
|
||||
use itertools::Itertools;
|
||||
|
@ -170,9 +171,8 @@ quick_error! {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn uu_app() -> clap::App<'static, 'static> {
|
||||
// TODO: migrate to clap to get more shell completions
|
||||
clap::App::new(uucore::util_name())
|
||||
pub fn uu_app<'a>() -> App<'a> {
|
||||
App::new(uucore::util_name())
|
||||
}
|
||||
|
||||
#[uucore_procs::gen_uumain]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue