We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffc16c commit a6e104fCopy full SHA for a6e104f
1 file changed
src/uu/cp/src/cp.rs
@@ -796,7 +796,7 @@ pub fn uu_app() -> Command {
796
797
#[uucore::main]
798
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
799
- let mut matches = uu_app().try_get_matches_from(args)?;
+ let matches = uu_app().try_get_matches_from(args)?;
800
801
let options = Options::from_matches(&matches)?;
802
@@ -808,7 +808,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
808
}
809
810
let paths: Vec<PathBuf> = matches
811
- .remove_many::<OsString>(options::PATHS)
+ .get_many::<OsString>(options::PATHS)
812
.map(|v| v.map(PathBuf::from).collect())
813
.unwrap_or_default();
814
0 commit comments