From 07e737231141fede40131b2f50e0a3a6d3f5b106 Mon Sep 17 00:00:00 2001 From: Ed Smith Date: Thu, 12 Jan 2023 15:43:05 +0000 Subject: [PATCH] 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 --- src/uu/nice/src/nice.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uu/nice/src/nice.rs b/src/uu/nice/src/nice.rs index ddd804cf2..dd507e33f 100644 --- a/src/uu/nice/src/nice.rs +++ b/src/uu/nice/src/nice.rs @@ -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(