do not assume filename is last arg
This commit is contained in:
parent
50dc69ae9b
commit
4a55140672
|
@ -131,8 +131,9 @@ fn processArgs(args: [][:0]u8, line_array: *[display.LINES]*const [:0]u8) !Optio
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (is_filename) {
|
if (is_filename) {
|
||||||
|
is_filename = false;
|
||||||
opts.background_filename = args[i]; // arg capture changes value...
|
opts.background_filename = args[i]; // arg capture changes value...
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
if ((arg[0] == '-' and arg.len > 1) and areDigits(arg[1..])) {
|
if ((arg[0] == '-' and arg.len > 1) and areDigits(arg[1..])) {
|
||||||
line_number = try std.fmt.parseInt(usize, arg[1..], 10);
|
line_number = try std.fmt.parseInt(usize, arg[1..], 10);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user