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

Merge pull request #206 from ebfe/cp

cp: fix argument parsing
This commit is contained in:
Heather 2014-06-03 15:49:57 +04:00
commit 79529d456f

View file

@ -83,7 +83,7 @@ fn copy(matches: getopts::Matches) {
fail!()
} else {
// All but the last argument:
matches.free.slice(0, matches.free.len() - 2).iter()
matches.free.slice(0, matches.free.len() - 1).iter()
.map(|arg| Path::new(arg.clone())).collect()
};
let dest = if matches.free.len() < 2 {