diff --git a/overcooked_simulator/__main__.py b/overcooked_simulator/__main__.py
index 7b055adeff6acd29a6912719a181632cb83cc400..436201f2ec085f299699bdbf641f6f01029270b8 100644
--- a/overcooked_simulator/__main__.py
+++ b/overcooked_simulator/__main__.py
@@ -23,6 +23,16 @@ def start_pygame_gui(cli_args):
 
 def main(cli_args=None):
     if cli_args is None:
+        parser = argparse.ArgumentParser(
+            prog="Overcooked Simulator",
+            description="Game Engine Server + PyGameGUI: Starts overcooked game engine server and a PyGame 2D Visualization window in two processes.",
+            epilog="For further information, see https://scs.pages.ub.uni-bielefeld.de/cocosy/overcooked-simulator/overcooked_simulator.html",
+        )
+
+        url_and_port_arguments(parser)
+        disable_websocket_logging_arguments(parser)
+        add_list_of_manager_ids_arguments(parser)
+
         cli_args = parser.parse_args()
     game_server = None
     pygame_gui = None
@@ -40,7 +50,7 @@ def main(cli_args=None):
         print("Received Keyboard interrupt")
     finally:
         if game_server is not None and game_server.is_alive():
-            print("Terminate game server")
+            print("Terminate gparserame server")
             game_server.terminate()
         if pygame_gui is not None and pygame_gui.is_alive():
             print("Terminate pygame gui")
@@ -49,15 +59,4 @@ def main(cli_args=None):
 
 
 if __name__ == "__main__":
-    parser = argparse.ArgumentParser(
-        prog="Overcooked Simulator",
-        description="Game Engine Server + PyGameGUI: Starts overcooked game engine server and a PyGame 2D Visualization window in two processes.",
-        epilog="For further information, see https://scs.pages.ub.uni-bielefeld.de/cocosy/overcooked-simulator/overcooked_simulator.html",
-    )
-
-    url_and_port_arguments(parser)
-    disable_websocket_logging_arguments(parser)
-    add_list_of_manager_ids_arguments(parser)
-
-    args = parser.parse_args()
-    main(args)
+    main()