From 8edeff4727d478ebe10dd82a5614310dfa2f839c Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 23 Feb 2024 09:45:43 +0100 Subject: [PATCH] setfacl: set last(true) for arg with num_args set --- src/uu/setfacl/src/setfacl.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/uu/setfacl/src/setfacl.rs b/src/uu/setfacl/src/setfacl.rs index 37d0a83..8fa0f0d 100644 --- a/src/uu/setfacl/src/setfacl.rs +++ b/src/uu/setfacl/src/setfacl.rs @@ -106,5 +106,10 @@ pub fn uu_app() -> Command { .arg(Arg::new("test").long("test").help( "Test mode. Instead of changing the ACLs of any files, the resulting ACLs are listed", )) - .arg(Arg::new("option").action(ArgAction::Set).num_args(0..)) + .arg( + Arg::new("option") + .action(ArgAction::Set) + .num_args(0..) + .last(true), + ) }