Skip to content
Snippets Groups Projects
Commit 3a817c8b authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix check min size value

parent 11ca88ce
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ class Print:
def check_min_size(value):
ivalue = int(value)
if ivalue <= 1:
raise argparse.ArgumentTypeError("%s is an invalid size value (>= 1)" % value)
if ivalue < 0:
raise argparse.ArgumentTypeError("%s is an invalid size value (>= 0)" % value)
return ivalue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment