From 02b452a86d11655002fdfbb1566ef494e2c954d2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 25 Nov 2019 13:23:30 +0100 Subject: Fix reading integer argument in python demo --- tests/roof.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roof.py b/tests/roof.py index a859069..831de7c 100644 --- a/tests/roof.py +++ b/tests/roof.py @@ -25,7 +25,7 @@ output = None parser = argparse.ArgumentParser() parser.add_argument('-c', '--config', dest="config", default="roof.json", help="ROOF configuration (JSON)") parser.add_argument('-o', '--output', dest="output", default=None, help="Output file") -parser.add_argument('-n', '--number', dest="number", default=None, help="Specify number of frames to capture") +parser.add_argument('-n', '--number', dest="number", default=None, type=int, help="Specify number of frames to capture") args = parser.parse_args() -- cgit v1.2.3