mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
paste: clap 3
This commit is contained in:
parent
9efd6654f8
commit
8f7f3d18ee
2 changed files with 8 additions and 8 deletions
|
@ -15,7 +15,7 @@ edition = "2018"
|
|||
path = "src/paste.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" }
|
||||
uucore_procs = { version=">=0.0.7", package="uucore_procs", path="../../uucore_procs" }
|
||||
|
||||
|
|
|
@ -48,29 +48,29 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
paste(files, serial, delimiters)
|
||||
}
|
||||
|
||||
pub fn uu_app() -> App<'static, 'static> {
|
||||
pub fn uu_app<'a>() -> App<'a> {
|
||||
App::new(uucore::util_name())
|
||||
.version(crate_version!())
|
||||
.about(ABOUT)
|
||||
.arg(
|
||||
Arg::with_name(options::SERIAL)
|
||||
Arg::new(options::SERIAL)
|
||||
.long(options::SERIAL)
|
||||
.short("s")
|
||||
.short('s')
|
||||
.help("paste one file at a time instead of in parallel"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name(options::DELIMITER)
|
||||
Arg::new(options::DELIMITER)
|
||||
.long(options::DELIMITER)
|
||||
.short("d")
|
||||
.short('d')
|
||||
.help("reuse characters from LIST instead of TABs")
|
||||
.value_name("LIST")
|
||||
.default_value("\t")
|
||||
.hide_default_value(true),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name(options::FILE)
|
||||
Arg::new(options::FILE)
|
||||
.value_name("FILE")
|
||||
.multiple(true)
|
||||
.multiple_occurrences(true)
|
||||
.default_value("-"),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue