From d3c0f1f3189ad9d650ba58b79a2d496eed240ddf Mon Sep 17 00:00:00 2001 From: Matt Wobensmith Date: Wed, 17 Jul 2019 11:15:49 -0700 Subject: [PATCH] Quit Iris if no target specified --- src/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/__main__.py b/src/__main__.py index 75a7199b..48f1ba8c 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -87,8 +87,11 @@ def main(): def show_control_center(): - if get_core_args().control or get_core_args().target is None: + if get_core_args().control: return True + elif get_core_args().target is None: + exit_iris('No target specified, e.g.: \n\niris your_target\n\nClosing Iris.', status=1) + return False else: return False