class Byebug::ListCommand

def parse_range(input, size, max_line)

def parse_range(input, size, max_line)
  first, err = get_int(input.split(/[-,]/)[0], 'List', 1, max_line)
  return [-1, -1] if err
  if input.split(/[-,]/)[1]
    last, _ = get_int(input.split(/[-,]/)[1], 'List', 1, max_line)
    return [-1, -1] unless last
    last = amend(last, max_line)
  else
    first -= (size / 2)
  end
  [first, last || move(first, size - 1)]
end