home · contact · privacy
For command line invocation, disallow (anyways ignored) additional arguments beyond...
authorChristian Heller <c.heller@plomlompom.de>
Thu, 2 Oct 2025 18:35:29 +0000 (20:35 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 2 Oct 2025 18:35:29 +0000 (20:35 +0200)
src/run.py

index 94e3bdfd0bb8fe8bc28790ba99a9b706038f82fc..a73ffeb014500ea24b1759e52e4f27b3b634b811 100755 (executable)
@@ -44,7 +44,7 @@ def main_loop(cls_term: type[TerminalInterface], cls_tui: type[BaseTui]
 if __name__ == '__main__':
     if len(argv) == 0:
         main_loop(Terminal, ClientTui)
-    elif len(argv) > 1 and argv[1] == 'test':
+    elif len(argv) == 1 and argv[1] == 'test':
         for path in PATH_TESTS.iterdir():
             if path.parts[-1].endswith('.toml'):
                 continue