From 26b36dfea14caed8d82abf5b7fc129426f2e8aa7 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 1 Sep 2020 10:45:27 +0200 Subject: [PATCH] release.py minor update to run in debugger --- scripts/release.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/release.py b/scripts/release.py index 0b494014c..639363dd8 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -450,12 +450,13 @@ def cleanup(): cmd("rm -fr " + workdir) if __name__ == '__main__': - if(len(sys.argv) != 2): - print("Argument error. Usage ./release.py bugfix | minor | major") - #exit(1) - - #dev_prepare = sys.argv[1] dev_prepare = 'minor' + if(len(sys.argv) != 2): + print("Missing argument. Usage ./release.py bugfix | minor | major") + print("Use minor by deafult") + else: + dev_prepare = sys.argv[1] + if not (dev_prepare in prepare_type): print("Invalid argument. Usage ./release.py bugfix | minor | major") exit(1)