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:
commit
4cd4df2880
1 changed files with 2 additions and 8 deletions
|
@ -360,10 +360,7 @@ pub fn uu_app() -> Command {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::ROUND)
|
Arg::new(options::ROUND)
|
||||||
.long(options::ROUND)
|
.long(options::ROUND)
|
||||||
.help(
|
.help("use METHOD for rounding when scaling")
|
||||||
"use METHOD for rounding when scaling; METHOD can be: up,\
|
|
||||||
down, from-zero, towards-zero, nearest",
|
|
||||||
)
|
|
||||||
.value_name("METHOD")
|
.value_name("METHOD")
|
||||||
.default_value("from-zero")
|
.default_value("from-zero")
|
||||||
.value_parser(["up", "down", "from-zero", "towards-zero", "nearest"]),
|
.value_parser(["up", "down", "from-zero", "towards-zero", "nearest"]),
|
||||||
|
@ -380,10 +377,7 @@ pub fn uu_app() -> Command {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::INVALID)
|
Arg::new(options::INVALID)
|
||||||
.long(options::INVALID)
|
.long(options::INVALID)
|
||||||
.help(
|
.help("set the failure mode for invalid input")
|
||||||
"set the failure mode for invalid input; \
|
|
||||||
valid options are abort, fail, warn or ignore",
|
|
||||||
)
|
|
||||||
.default_value("abort")
|
.default_value("abort")
|
||||||
.value_parser(["abort", "fail", "warn", "ignore"])
|
.value_parser(["abort", "fail", "warn", "ignore"])
|
||||||
.value_name("INVALID"),
|
.value_name("INVALID"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue