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