From 4d827d2d211f95ddbac19d15440afc72802a1afe Mon Sep 17 00:00:00 2001 From: Nackophilz <61667226+Nackophilz@users.noreply.github.com> Date: Mon, 31 Jul 2023 20:41:07 +0200 Subject: [PATCH] Update mods.py --- src/mods.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/mods.py b/src/mods.py index 12fa656..5c5bf42 100644 --- a/src/mods.py +++ b/src/mods.py @@ -39,6 +39,7 @@ '--add-data ', '--add-binary ', '--collect-data ', + '--collect-all ', '--name ', '-n ', '--icon ', '-i ', @@ -94,21 +95,14 @@ def get_option_value(option:str): - """ Returns: Value of `option` from provided options (if available) """ + """ Returns: Value of `option` from provided options """ for i in supported_options: - iList = i.split( - maxsplit=1 - ) + iList = i.split(maxsplit=1) if len(iList) < 2: continue key, value, *_ = iList if key == option: - return value.strip( - '"' - ).strip( - "'" - ) - + return value.strip('"').strip("'") ## ---------------------- Spec Name ---------------------- ##