From 771512ab2cb27c36c3229ebce96e84bb9955a74c Mon Sep 17 00:00:00 2001 From: qwint Date: Tue, 30 Jul 2024 15:13:38 -0500 Subject: [PATCH] explicitly using default args for parse_args when launched directly --- CommonClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index e8332f813f59..d0ca33e9144a 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -1033,7 +1033,7 @@ async def main(args): parser = get_base_parser(description="Gameless Archipelago Client, for text interfacing.") parser.add_argument('--name', default=None, help="Slot Name to connect as.") parser.add_argument("url", nargs="?", help="Archipelago connection url") - args = parser.parse_args(args if args else None) + args = parser.parse_args(args) if args.url: url = urllib.parse.urlparse(args.url) @@ -1051,4 +1051,4 @@ async def main(args): if __name__ == '__main__': logging.getLogger().setLevel(logging.INFO) # force log-level to work around log level resetting to WARNING - run_as_textclient() + run_as_textclient(*sys.argv[1:]) # default value for parse_args