From 3efbf52519a6f259e84f30eb83cf1634d206caf7 Mon Sep 17 00:00:00 2001 From: "stephen.worsley" Date: Fri, 13 Sep 2019 11:52:20 +0100 Subject: [PATCH] fixed logic for command reading --- kapture/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kapture/__main__.py b/kapture/__main__.py index d861322..bc86914 100644 --- a/kapture/__main__.py +++ b/kapture/__main__.py @@ -49,7 +49,7 @@ def usage(): LOG_PATH = sys.argv[2] sys.argv = sys.argv[:1] + sys.argv[3:] - if sys.argv[1] == '-c' or sys.argv[1] == '-m' and len(sys.argv) < 3: + if (sys.argv[1] == '-c' or sys.argv[1] == '-m') and len(sys.argv) < 3: usage() main(sys.argv[1:])