mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
paste: clap 3
This commit is contained in:
@@ -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("-"),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user