From 18cc6230c7b794576de8be1b82cfba162aa00ee3 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Sun, 5 Jan 2025 14:07:57 +0330 Subject: [PATCH] fix bug in `ui/main.py` interpreting `sys.argv[0]` as input filename --- pyglossary/ui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyglossary/ui/main.py b/pyglossary/ui/main.py index 6d5d16e90..f9a2fbba3 100644 --- a/pyglossary/ui/main.py +++ b/pyglossary/ui/main.py @@ -136,7 +136,7 @@ def mainPrepare(argv: list[str]) -> tuple[bool, MainPrepareResult | None]: # _______________________________ - args = parser.parse_args(argv) + args = parser.parse_args(argv[1:]) # parser.conflict_handler == "error"