diff --git a/main.py b/main.py index c5f1e9c..f965d7e 100755 --- a/main.py +++ b/main.py @@ -198,6 +198,10 @@ class _Repo(object): else: print('error: project group must be enabled for the project in the current directory', file=sys.stderr) result = 1 + except SystemExit as e: + if e.code: + result = e.code + raise finally: elapsed = time.time() - start hours, remainder = divmod(elapsed, 3600)