1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #5034 from cakebaker/numfmt_possible_values_are_shown_twice

numfmt: remove duplicate info from help output
This commit is contained in:
Sylvestre Ledru 2023-07-04 10:50:13 +02:00 committed by GitHub
commit 4cd4df2880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,10 +360,7 @@ pub fn uu_app() -> Command {
.arg(
Arg::new(options::ROUND)
.long(options::ROUND)
.help(
"use METHOD for rounding when scaling; METHOD can be: up,\
down, from-zero, towards-zero, nearest",
)
.help("use METHOD for rounding when scaling")
.value_name("METHOD")
.default_value("from-zero")
.value_parser(["up", "down", "from-zero", "towards-zero", "nearest"]),
@ -380,10 +377,7 @@ pub fn uu_app() -> Command {
.arg(
Arg::new(options::INVALID)
.long(options::INVALID)
.help(
"set the failure mode for invalid input; \
valid options are abort, fail, warn or ignore",
)
.help("set the failure mode for invalid input")
.default_value("abort")
.value_parser(["abort", "fail", "warn", "ignore"])
.value_name("INVALID"),