From 5b1d4d9bdce4a075ff1cd064481831a6959a7c52 Mon Sep 17 00:00:00 2001 From: LoricAndre Date: Tue, 10 Sep 2024 00:12:59 +0200 Subject: [PATCH] fix: add arg count for cp --- src/uu/cp/src/cp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index cce042bfa..152dc8c73 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -677,6 +677,8 @@ pub fn uu_app() -> Command { .arg( Arg::new(options::PATHS) .action(ArgAction::Append) + .num_args(1..) + .required(true) .value_hint(clap::ValueHint::AnyPath) .value_parser(ValueParser::os_string()), )