fix: remove never read collection from parse_cmd_opts

Closes #12251
This commit is contained in:
xtqqczze
2025-12-31 18:13:02 +00:00
committed by Johannes Altmanninger
parent 2d6db3f980
commit 725cf33f1a

View File

@@ -202,10 +202,6 @@ fn parse_cmd_opts(
streams: &mut IoStreams,
) -> BuiltinResult {
let cmd = args[0];
let mut args_read = Vec::with_capacity(args.len());
args_read.extend_from_slice(args);
let mut w = WGetopter::new(SHORT_OPTIONS, LONG_OPTIONS, args);
while let Some(c) = w.next_opt() {
match c {