home · contact · privacy
Fix erroneous argv counting.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 2 Oct 2025 19:05:02 +0000 (21:05 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 2 Oct 2025 19:05:02 +0000 (21:05 +0200)
src/run.py

index a73ffeb014500ea24b1759e52e4f27b3b634b811..bc2682d0ff53ce92c1666d3ded52b00c4cae2828 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) == 2 and argv[1] == 'test':
         for path in PATH_TESTS.iterdir():
             if path.parts[-1].endswith('.toml'):
                 continue