From d477cc99ebe1ee305d367f4efd8f19bd4f8aa156 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Tue, 28 Nov 2023 10:06:23 +0100
Subject: [PATCH] added missing exits

---
 src/pystencilssfg/cli.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pystencilssfg/cli.py b/src/pystencilssfg/cli.py
index 6ebfbf0..7a2e296 100644
--- a/src/pystencilssfg/cli.py
+++ b/src/pystencilssfg/cli.py
@@ -84,11 +84,13 @@ def list_files(args):
 def print_cmake_modulepath(args):
     from .cmake import get_sfg_cmake_modulepath
     print(get_sfg_cmake_modulepath(), end=os.linesep if args.newline else '')
+    exit(0)
 
 
 def make_cmake_find_module(args):
     from .cmake import make_find_module
     make_find_module()
+    exit(0)
 
 
 def abort_with_config_exception(exception: SfgConfigException):
-- 
GitLab