def check_positive_int()

in memory_analyzer/memory_analyzer.py [0:0]


def check_positive_int(ctx, param, i):
    i = int(i)
    if i >= 0:
        return i
    msg = "The number of references cannot be negative."
    raise click.BadParameter(msg)