From d21acc4621f61988ddde54a802db2c4a73022d2b Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 8 Dec 2020 23:19:51 +0100 Subject: [PATCH] cosmetic(cp): use the variable instead of the string --- src/uu/cp/src/cp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index fe710621d..73713555a 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -468,7 +468,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 { let options = crash_if_err!(EXIT_ERR, Options::from_matches(&matches)); let paths: Vec = matches - .values_of("paths") + .values_of(OPT_PATHS) .map(|v| v.map(ToString::to_string).collect()) .unwrap_or_default();