def select_positive_integer(message='', value=-1):
    """ CLI non-negative integer selection. """
    
    while value < 0:
        value = int(input(message))
        if value < 0:
            logger.error('Invalid choice.')
    return value
CLI non-negative integer selection.
ISR/utils/utils.py