mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 11:46:17 +00:00
dd: update to clap 4
This commit is contained in:
parent
8183f4cf06
commit
2420830e9d
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ path = "src/dd.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
byte-unit = "4.0"
|
byte-unit = "4.0"
|
||||||
clap = { version = "3.2", features = ["wrap_help", "cargo"] }
|
clap = { version = "4.0", features = ["wrap_help", "cargo"] }
|
||||||
gcd = "2.0"
|
gcd = "2.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
uucore = { version=">=0.0.16", package="uucore", path="../../uucore" }
|
uucore = { version=">=0.0.16", package="uucore", path="../../uucore" }
|
||||||
|
|
|
@ -769,13 +769,13 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn uu_app<'a>() -> Command<'a> {
|
pub fn uu_app() -> Command {
|
||||||
Command::new(uucore::util_name())
|
Command::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
.after_help(AFTER_HELP)
|
.after_help(AFTER_HELP)
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
.arg(Arg::new(options::OPERANDS).multiple_values(true))
|
.arg(Arg::new(options::OPERANDS).num_args(1..))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue