From 247a1ac67fb3f39f90e08b2050a7a89ae38e3acd Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Thu, 9 Feb 2023 17:29:48 +0000
Subject: [PATCH] update_mdc: make --really a flag

---
 webservice/update_mdc.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/webservice/update_mdc.py b/webservice/update_mdc.py
index cb1a9dfcc..f99417d21 100644
--- a/webservice/update_mdc.py
+++ b/webservice/update_mdc.py
@@ -27,7 +27,8 @@ parser.add_argument('--runs', type=parse_int_range,
 parser.add_argument('--rid', type=int, help='Run id from MDC')
 parser.add_argument('--msg', type=str, help='Message string to MDC',
                     default='Error while job submission')
-parser.add_argument('--really', help="Actually make changes (otherwise dry-run)")
+parser.add_argument('--really', action='store_true',
+                    help="Actually make changes (otherwise dry-run)")
 args = parser.parse_args()
 
 if args.conf_file is not None:
-- 
GitLab