1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Removed manual checks to just using clap instead

Also added tests for this.

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
Hanif Bin Ariffin 2021-07-10 18:49:11 +08:00
parent c4c6819dae
commit 199b4e437b

View file

@ -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),
)
}