mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
yes: clap 3
This commit is contained in:
parent
fe69ad25f8
commit
e62fdb9307
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ edition = "2018"
|
|||
path = "src/yes.rs"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "2.33", features = ["wrap_help"] }
|
||||
clap = { version = "3.0", features = ["wrap_help", "cargo"] }
|
||||
uucore = { version=">=0.0.10", package="uucore", path="../../uucore", features=["pipes"] }
|
||||
uucore_procs = { version=">=0.0.7", package="uucore_procs", path="../../uucore_procs" }
|
||||
|
||||
|
|
|
@ -46,8 +46,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn uu_app() -> App<'static, 'static> {
|
||||
app_from_crate!().arg(Arg::with_name("STRING").index(1).multiple(true))
|
||||
pub fn uu_app<'a>() -> App<'a> {
|
||||
app_from_crate!().arg(Arg::new("STRING").index(1).multiple_occurrences(true))
|
||||
}
|
||||
|
||||
fn prepare_buffer<'a>(input: &'a str, buffer: &'a mut [u8; BUF_SIZE]) -> &'a [u8] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue