From: Christian Heller Date: Thu, 2 Oct 2025 18:35:29 +0000 (+0200) Subject: For command line invocation, disallow (anyways ignored) additional arguments beyond... X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=87eca9d0c737a61adb07ea181ae83ccb97a5e538;p=ircplom For command line invocation, disallow (anyways ignored) additional arguments beyond "test". --- diff --git a/src/run.py b/src/run.py index 94e3bdf..a73ffeb 100755 --- a/src/run.py +++ b/src/run.py @@ -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