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

index bc2682d0ff53ce92c1666d3ded52b00c4cae2828..3d0d4fe1c4e973052f311d24e41d5d65a0a971f9 100755 (executable)
@@ -42,7 +42,7 @@ def main_loop(cls_term: type[TerminalInterface], cls_tui: type[BaseTui]
 
 
 if __name__ == '__main__':
-    if len(argv) == 0:
+    if len(argv) == 1:
         main_loop(Terminal, ClientTui)
     elif len(argv) == 2 and argv[1] == 'test':
         for path in PATH_TESTS.iterdir():