Skip to content

Commit

Permalink
Update mods.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nackophilz authored Jul 31, 2023
1 parent dcfd75f commit 4d827d2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'--add-data <SRC;DEST or SRC:DEST>',
'--add-binary <SRC;DEST or SRC:DEST>',
'--collect-data <MODULENAME>',
'--collect-all <MODULENAME>',

'--name <NAME>', '-n <NAME>',
'--icon <FILEICON>', '-i <FILEICON>',
Expand Down Expand Up @@ -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 ---------------------- ##
Expand Down

0 comments on commit 4d827d2

Please sign in to comment.