From 1315f04226a4006d66218f8ea411be4745b3c52d Mon Sep 17 00:00:00 2001
From: lb584 <lb584@cam.ac.uk>
Date: Tue, 17 Oct 2023 13:43:44 +0100
Subject: [PATCH] first stab at getting new runner script working

---
 coordinator/Processor.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/coordinator/Processor.py b/coordinator/Processor.py
index f62dd70..20e9c01 100755
--- a/coordinator/Processor.py
+++ b/coordinator/Processor.py
@@ -255,14 +255,14 @@ class Processor:
         # positional arguments do not start with - or -- and are always required
         # optional arguments start with - or -- and default is required = False
 
-        # my_parser.add_argument(
-        #         '-p', '--component',
-        #         type = str,
-        #         choices = list(short_name.keys()),
-        #         required = True,
-        #         dest = 'component',
-        #         help = '''Name of EWS component to process, which must be present
-        #         in the config file.''')
+        my_parser.add_argument(
+                '-p', '--component',
+                type = str,
+                choices = list(short_name.keys()),
+                required = False,
+                dest = 'component',
+                help = '''Name of EWS component to process, which must be present
+                in the config file.''')
 
         my_parser.add_argument(
                 '-c', '--config',
-- 
GitLab