From a5404f23789a73804dfa63721df995188b4bbb9d Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 12 Jul 2016 11:08:03 +0200 Subject: Require device string --- tests/roi.py | 3 ++- tests/timeout.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/roi.py b/tests/roi.py index f429740..0f614cd 100644 --- a/tests/roi.py +++ b/tests/roi.py @@ -24,7 +24,8 @@ def grab(camera, height=3840, offset=0): if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument('--device', '-d', type=str, help="TANGO device path") + parser.add_argument('--device', '-d', type=str, required=True, + help="TANGO device path") args = parser.parse_args() diff --git a/tests/timeout.py b/tests/timeout.py index 3b0d150..eede1e7 100644 --- a/tests/timeout.py +++ b/tests/timeout.py @@ -31,7 +31,8 @@ def grab(camera, timeout, do_trigger): if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument('--device', '-d', type=str, help="TANGO device path") + parser.add_argument('--device', '-d', type=str, required=True, + help="TANGO device path") args = parser.parse_args() -- cgit v1.2.3