From 1abfc4b15fc1ef3c596a959336bd92cbc853442d Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Wed, 7 Sep 2022 18:12:04 +0200 Subject: [PATCH] chroot: set trailing var arg Without trailing var arg set in clap, flags in the command argument are incorrectly parsed by clap. --- src/uu/chroot/src/chroot.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uu/chroot/src/chroot.rs b/src/uu/chroot/src/chroot.rs index 1e5f62d5f..21d87ec96 100644 --- a/src/uu/chroot/src/chroot.rs +++ b/src/uu/chroot/src/chroot.rs @@ -98,6 +98,7 @@ pub fn uu_app<'a>() -> Command<'a> { .about(ABOUT) .override_usage(format_usage(USAGE)) .infer_long_args(true) + .trailing_var_arg(true) .arg( Arg::new(options::NEWROOT) .value_hint(clap::ValueHint::DirPath)