def list_arg(request, key, delimiter=','):
    """Return an argument of the request separated into a list or None."""
    found = request.raw_args.get(key)
    if found is not None:
        return found.split(delimiter)
    else:
        return None
