From 44ae45793ed57b683ad00449e4c7253e4b3949a3 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 3 Jun 2014 12:49:12 +0200 Subject: [PATCH] cp: fix argument parsing --- cp/cp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cp/cp.rs b/cp/cp.rs index 9cdc33817..7176d9007 100644 --- a/cp/cp.rs +++ b/cp/cp.rs @@ -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 {