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