forked from p15670423/monkey
Agent: Change the positive_int definition to contain 0
This commit is contained in:
parent
8358253fc7
commit
8d2078048c
|
@ -3,7 +3,7 @@ import argparse
|
|||
|
||||
def positive_int(_input: str):
|
||||
int_value = int(_input)
|
||||
if int_value <= 0:
|
||||
if int_value < 0:
|
||||
raise argparse.ArgumentTypeError(f"{_input} is not a positive integer")
|
||||
|
||||
return int_value
|
||||
|
|
Loading…
Reference in New Issue