chroot: set trailing var arg

Without trailing var arg set in clap, flags in the command argument are
incorrectly parsed by clap.
This commit is contained in:
Terts Diepraam
2022-09-09 11:42:33 +02:00
parent e28301e969
commit 1abfc4b15f
+1
View File
@@ -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)