1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

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-07 18:12:04 +02:00
parent e28301e969
commit 1abfc4b15f

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)