def positive_int(x) ->int:
    """
    Checks that the provided input is a positive integer. Used for PID
    validation in the CLI arguments.

    Parameters
    ----------
    x
        A positive integer

    Returns
    -------

    """
    x = int(x)
    if x < 0:
        raise ValueError('A positive integer is expected')
    return x
