From 199b4e437b6102cf72abf6d93d1a1b6043d3ada5 Mon Sep 17 00:00:00 2001 From: Hanif Bin Ariffin Date: Sat, 10 Jul 2021 18:49:11 +0800 Subject: [PATCH] Removed manual checks to just using clap instead Also added tests for this. Signed-off-by: Hanif Bin Ariffin --- src/uu/tr/src/tr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uu/tr/src/tr.rs b/src/uu/tr/src/tr.rs index 1a696f3b9..153128bfd 100644 --- a/src/uu/tr/src/tr.rs +++ b/src/uu/tr/src/tr.rs @@ -364,6 +364,7 @@ pub fn uu_app() -> App<'static, 'static> { Arg::with_name(options::SETS) .multiple(true) .takes_value(true) + .min_values(1) .max_values(2), ) }