seq: handle --

This commit is contained in:
Arcterus 2014-06-20 16:46:59 -07:00
parent f96a4311a2
commit 1296aa3d0d

View file

@ -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