1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

nice: Permit --adjustment to be specified multiple times

This is tested by the GNU coreutils test suite, and the
correct behaviour is the last specification wins.

Signed-off-by: Ed Smith <ed.smith@collabora.com>
This commit is contained in:
Ed Smith 2023-01-12 15:43:05 +00:00 committed by Sylvestre Ledru
parent 8aa9f346ef
commit 07e7372311

View file

@ -190,6 +190,8 @@ pub fn uu_app() -> Command {
.short('n')
.long(options::ADJUSTMENT)
.help("add N to the niceness (default is 10)")
.action(ArgAction::Set)
.overrides_with(options::ADJUSTMENT)
.allow_hyphen_values(true),
)
.arg(