Skip to content

Commit a6e104f

Browse files
committed
cp: use get_many instead of remove_many from clap
1 parent 7ffc16c commit a6e104f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uu/cp/src/cp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ pub fn uu_app() -> Command {
796796

797797
#[uucore::main]
798798
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
799-
let mut matches = uu_app().try_get_matches_from(args)?;
799+
let matches = uu_app().try_get_matches_from(args)?;
800800

801801
let options = Options::from_matches(&matches)?;
802802

@@ -808,7 +808,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
808808
}
809809

810810
let paths: Vec<PathBuf> = matches
811-
.remove_many::<OsString>(options::PATHS)
811+
.get_many::<OsString>(options::PATHS)
812812
.map(|v| v.map(PathBuf::from).collect())
813813
.unwrap_or_default();
814814

0 commit comments

Comments
 (0)