mirror of
https://github.com/uutils/coreutils
synced 2024-10-15 12:24:09 +00:00
seq: handle --
This commit is contained in:
parent
f96a4311a2
commit
1296aa3d0d
|
@ -64,6 +64,10 @@ fn parse_options(args: Vec<String>, options: &mut SeqOptions) -> Result<Vec<Stri
|
|||
}
|
||||
},
|
||||
"-w" | "--widths" => options.widths = true,
|
||||
"--" => {
|
||||
seq_args.push_all_move(iter.collect());
|
||||
break;
|
||||
},
|
||||
_ => {
|
||||
if arg.len() > 1 && arg.as_slice().char_at(0) == '-' {
|
||||
let argptr: *String = &arg; // escape from the borrow checker
|
||||
|
|
Loading…
Reference in a new issue